Making a collection of Ember, could not find the module. due to the module name contains '\' instead of '/'

In the ember build assembly, I got the following error while loading index.html.

Fault: could not find the ember-data/-private\system\references\record module imported from ember-data/-private/system/references

I believe the slash module name causes this problem.

I do not have an entry in the ember-cli-build.js file. When analyzing this error, I found the registry contains the modules below ,
"Ugolka-data / -private / system / links"
"Ugolka-data / -private / system / links / belongs to"
"ember-data / -private / system / references / has-many"

but some, as he checks the dependencies below in the registry of coal-data private \ system \ links
\ The system of coal-data private \ links \ belongs to
ember-data-private \ system \ references \ has-many

which causes the underlying module error. Anyone help me solve this error.

+5
source share
1 answer

Bug fixed.

As a best practice, actively use ~ (tilde) or ^ (caret) on package.json . This way you can get the latest version when running npm install .

+1
source

Source: https://habr.com/ru/post/1244668/


All Articles