You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ncc version 0.36.1 and encountering an issue while compiling an ssr.js file into ESM format. The error message suggests that a module parse failed due to an unexpected character. The error also hints that an additional loader might be needed.
In my code, I use leaflet("@vue-leaflet/vue-leaflet": "^0.10.1",). When I comment out the leaflet peace, everything is fine.
Run npx --yes @vercel/ncc build -t bootstrap/ssr/ssr.js --out=bootstrap/sidecar-ssr
Observe the error
Error Message:
ncc: Version 0.36.1
ncc: Compiling file index.js into ESM
Error: Module parse failed: Unexpected character '�' (1:0)
File was processed with these loaders:
* ../../../.npm/_npx/7a71fb44c9115061/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js
You may need an additional loader to handle the result of these loaders.
(Source code omitted for this binary file)
Module parse failed: Unexpected character '�' (1:0)
File was processed with these loaders:
* ../../../.npm/_npx/7a71fb44c9115061/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js
You may need an additional loader to handle the result of these loaders.
(Source code omitted for this binary file)
Module parse failed: Unexpected character '�' (1:0)
File was processed with these loaders:
* ../../../.npm/_npx/7a71fb44c9115061/node_modules/@vercel/ncc/dist/ncc/loaders/shebang-loader.js
You may need an additional loader to handle the result of these loaders.
(Source code omitted for this binary file)
at /Users/<me>/.npm/_npx/7a71fb44c9115061/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:1870077
at /Users/<me>/.npm/_npx/7a71fb44c9115061/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:383620
at _done (eval at create (/Users/<me>/.npm/_npx/7a71fb44c9115061/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:20:75523), <anonymous>:9:1)
at eval (eval at create (/Users/<me>/.npm/_npx/7a71fb44c9115061/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:20:75523), <anonymous>:34:22)
Would appreciate any guidance on how to resolve this issue. Thank you!
The text was updated successfully, but these errors were encountered:
I am using ncc version 0.36.1 and encountering an issue while compiling an ssr.js file into ESM format. The error message suggests that a module parse failed due to an unexpected character. The error also hints that an additional loader might be needed.
Environment:
ncc version: 0.36.1
Node.js version: (please specify)
Operating System: (please specify)
Steps to Reproduce:
In my code, I use leaflet(
"@vue-leaflet/vue-leaflet": "^0.10.1",
). When I comment out the leaflet peace, everything is fine.Run
npx --yes @vercel/ncc build -t bootstrap/ssr/ssr.js --out=bootstrap/sidecar-ssr
Observe the error
Error Message:
Would appreciate any guidance on how to resolve this issue. Thank you!
The text was updated successfully, but these errors were encountered: