In production ember build, i got the below error while loading index.html.
Uncaught Error: Could not find module ember-data/-private\system\references\record
imported from ember-data/-private/system/references
I believe module name forward slash causes this issue.
I don't have any entry in ember-cli-build.js file. While analyzing this error, I found registry contains the below Modules,
"ember-data/-private/system/references"
"ember-data/-private/system/references/belongs-to"
"ember-data/-private/system/references/has-many"
but some how it is checking for the below dependencies in registry
ember-data-private\system\references
ember-data-private\system\references\belongs-to
ember-data-private\system\references\has-many
that causes the below missing module error. Any one help me how to solve this error.
The bug has fixed.
As a best practice, actively use ~ (tilde)
or ^ (caret)
on your package.json
. So you can get the latest release when you run npm install
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With