Error while migrating to ncc v0.25.1
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 9.8k
- Forks
- 326
- PR merge metrics
- No merged PRs in 30d
Description
Hello.
We have the following error when migrate from v0.24.1 to v0.25.1
We use node version v14.3.0
error from console
Error: Can't import the named export 'resolve' (imported as 'resolve') from default-exporting module (only default export is available)
Can't import the named export 'statSync' (imported as 'statSync') from default-exporting module (only default export is available)
Can't import the named export 'dirname' (imported as 'dirname') from default-exporting module (only default export is available)
Can't import the named export 'readdirSync' (imported as 'readdirSync') from default-exporting module (only default export is available)
Can't import the named export 'resolve' (imported as 'resolve') from default-exporting module (only default export is available)
Can't import the named export 'dirname' (imported as 'dirname') from default-exporting module (only default export is available)
Can't import the named export 'format' (imported as 'format') from default-exporting module (only default export is available)
Can't import the named export 'normalize' (imported as 'normalize') from default-exporting module (only default export is available)
Can't import the named export 'resolve' (imported as 'resolve') from default-exporting module (only default export is available)
Can't import the named export 'readFileSync' (imported as 'readFileSync') from default-exporting module (only default export is available)
Can't import the named export 'fileURLToPath' (imported as 'fileURLToPath') from default-exporting module (only default export is available)
Can't import the named export 'fileURLToPath' (imported as 'fileURLToPath') from default-exporting module (only default export is available)
Can't import the named export 'notStrictEqual' (imported as 'notStrictEqual') from default-exporting module (only default export is available)
Can't import the named export 'strictEqual' (imported as 'strictEqual') from default-exporting module (only default export is available)
Can't import the named export 'inspect' (imported as 'inspect') from default-exporting module (only default export is available)
Can't import the named export 'basename' (imported as 'basename') from default-exporting module (only default export is available)
Can't import the named export 'dirname' (imported as 'dirname') from default-exporting module (only default export is available)
Can't import the named export 'extname' (imported as 'extname') from default-exporting module (only default export is available)
Can't import the named export 'relative' (imported as 'relative') from default-exporting module (only default export is available)
Can't import the named export 'resolve' (imported as 'resolve') from default-exporting module (only default export is available)
Can't import the named export 'readFileSync' (imported as 'readFileSync') from default-exporting module (only default export is available)
Can't import the named export 'resolve' (imported as 'resolve') from default-exporting module (only default export is available)
Can't import the named export 'readFileSync' (imported as 'readFileSync') from default-exporting module (only default export is available)
Can't import the named export 'writeFile' (imported as 'writeFile') from default-exporting module (only default export is available)
Can't import the named export 'format' (imported as 'format') from default-exporting module (only default export is available)
Can't import the named export 'resolve' (imported as 'resolve') from default-exporting module (only default export is available)
Can't import the named export 'statSync' (imported as 'statSync') from default-exporting module (only default export is available)
at /Users/lionel/Code/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:1:3258160
at /Users/lionel/Code/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:1:2210952
at eval (eval at create (/Users/lionel/Code/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:1:1140142), :13:1)
error Command failed with exit code 1.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the migration from ncc v0.24.1 to v0.25.1 with Node v14.3.0 and capture the reported named-export errors. The report does not identify source files or tests, so locate the failing bundling path before investigating; done means the migrated project compiles without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100