Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js v14.0.2-14.0.4-canary.11 break imports @pathfinder-ide/react package #58831

Closed
1 task done
jakst opened this issue Nov 23, 2023 · 2 comments · Fixed by #58967
Closed
1 task done

Next.js v14.0.2-14.0.4-canary.11 break imports @pathfinder-ide/react package #58831

jakst opened this issue Nov 23, 2023 · 2 comments · Fixed by #58967
Assignees
Labels
bug Issue was opened via the bug report template. linear: next Confirmed issue that is tracked by the Next.js team. locked Module Resolution Module resolution (CJS / ESM, module resolving). SWC Related to minification/transpilation in Next.js.

Comments

@jakst
Copy link

jakst commented Nov 23, 2023

Link to the code that reproduces this issue

https://github.com/jakst/nextjs-pathfinder-import-fail

To Reproduce

  1. Start a build with pnpm build
  2. Observer the following error (same error in dev server as well)
Attempted import error: 's' is not exported from './index-95c7a92d.js' (imported as 'ee').
  1. Downgrade from Next v14.0.3 (same error in v14.0.4-canary.11) to v14.0.1 pnpm add next@14.0.1
  2. Run pnpm build again
  3. Observe that the build passed. You can als pnpm start and visit the page to see that the IDE is properly instantiated.

Current vs. Expected behavior

It should be possible to build the application while importing the @pathfinder-ide/react repo, like before

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:32:11 PDT 2023; root:xnu-10002.41.9~7/RELEASE_ARM64_T6030
Binaries:
  Node: 21.2.0
  npm: 10.2.3
  Yarn: 4.0.2
  pnpm: 8.10.5
Relevant Packages:
  next: 14.0.4-canary.11
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

App Router, SWC minifier (swcMinify: true), SWC transpilation

Additional context

No response

NEXT-1740

@jakst jakst added the bug Issue was opened via the bug report template. label Nov 23, 2023
@github-actions github-actions bot added area: SWC Minify SWC Related to minification/transpilation in Next.js. labels Nov 23, 2023
@leerob
Copy link
Member

leerob commented Nov 23, 2023

Combining with #58557. Thank you for making a reproduction.

Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2023
@huozhi huozhi added the Module Resolution Module resolution (CJS / ESM, module resolving). label Jan 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. linear: next Confirmed issue that is tracked by the Next.js team. locked Module Resolution Module resolution (CJS / ESM, module resolving). SWC Related to minification/transpilation in Next.js.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants