Just learning Ember.js
Following tutorial at /
with
ember new super-rentals --lang en
then once finished installing packages
cd super-rentals
npm start
But getting error
Cannot find module '.../node_modules/@embroider/macros/src/node.js.js'
The file '.../node_modules/@embroider/macros/src/node.js'
exists, but not with the double .js.js
npm -v
11.2.0
ember -v
ember-cli: 6.3.0
node: 22.14.0
os: linux x64
I ensured I updated to latest npm.
Hacky temp workaround (local dev only)
I ended up hacking this by copying '.../node_modules/@embroider/macros/src/node.js'
to make a duplicate with the double .js.js
'.../node_modules/@embroider/macros/src/node.js.js'
and the app started
I tried just renaming it with the double.js but that caused other errors, so kept both copies with single .js and double .js.js
But this is a bad hack, and would only work locally (as node_modules not part of source control), so wondering what's causing that.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743744401a4499740.html
评论列表(0条)