Closed nenadvicentic closed 2 years ago
Cannot find module '@babel/plugin-transform-modules-amd'
Sounds like your node_modules is broken. Can you try clean them up (plus lock file) and try again?
FYI, that babel amd package is a dep of aurelia-cli.
huocp@Chunpengs-MacBook-Pro ~/p/at> npm ls @babel/plugin-transform-modules-amd
at@0.1.0 /Users/huocp/playground/at
└─┬ aurelia-cli@3.0.1
└── @babel/plugin-transform-modules-amd@7.18.6
@3cp After removing complete node_modules
folder and yarn.lock
file, then re-running yarn
, au build
started to work.
Cheers
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows 11
Node Version: v16.14.0
NPM Version: 8.3.1
Language: TypeScript 4.7.4
Loader/bundler: RequireJS
Current behavior: After upgrade from Aurelia CLI 2.0.3 to 3.0.1,
au build
breaks with the message:Continue to successfully bundle the project, as Aurelia CLI 2.0.3 did.
Full stack trace: