new ember.js application fails to start as cannot find node_modules@embroidermacrossrcnode.js.js (with double .js) - Stack Overf

Just learning Ember.jsFollowing tutorial at withember new super-rentals --lang enthen once finishe

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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信