vercel / vercel/ncc

Error while migrating to ncc v0.25.1

Open
#618 4 comments 7 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.