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

ERR_UNSUPPORTED_DIR_IMPORT when building a project #1326

Closed
2 tasks done
djohts opened this issue Mar 29, 2024 · 5 comments
Closed
2 tasks done

ERR_UNSUPPORTED_DIR_IMPORT when building a project #1326

djohts opened this issue Mar 29, 2024 · 5 comments

Comments

@djohts
Copy link

djohts commented Mar 29, 2024

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version

Steps to reproduce

  1. Update to [email protected]
  2. Build the project via next build

Current behavior

[18:51:29.228]  ✓ Compiled successfully
[18:51:29.229]    Collecting page data ...
[18:51:29.548] unhandledRejection Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/vercel/path0/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite-react/lib/esm/components/Accordion' is not supported resolving ES modules imported from /vercel/path0/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite-react/lib/esm/index.js
[18:51:29.548]     at finalizeResolution (node:internal/modules/esm/resolve:258:11)
[18:51:29.548]     at moduleResolve (node:internal/modules/esm/resolve:917:10)
[18:51:29.548]     at defaultResolve (node:internal/modules/esm/resolve:1130:11)
[18:51:29.548]     at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
[18:51:29.548]     at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
[18:51:29.548]     at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
[18:51:29.548]     at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
[18:51:29.548]     at link (node:internal/modules/esm/module_job:84:36) {
[18:51:29.548]   type: 'Error',
[18:51:29.548]   code: 'ERR_UNSUPPORTED_DIR_IMPORT',
[18:51:29.549]   url: 'file:///vercel/path0/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/flowbite-react/lib/esm/components/Accordion'
[18:51:29.549] }
[18:51:29.607]  ELIFECYCLE  Command failed with exit code 1.
[18:51:29.624] Error: Command "pnpm run build" exited with 1

Expected behavior

Build finishes successfully.

@SutuSebastian
Copy link
Collaborator

Works on 0.7.5?

@djohts
Copy link
Author

djohts commented Mar 29, 2024

Works on 0.7.5?

Yes, the issue got introduced in 0.7.6

@dragoscv
Copy link

dragoscv commented Mar 30, 2024

Same issue for me but on development. I resorted to downgrade to version 0.7.5

@SutuSebastian
Copy link
Collaborator

SutuSebastian commented Apr 1, 2024

Check 0.7.8, hope it fixed everything related to imports/build/install.

@SutuSebastian
Copy link
Collaborator

Released 0.8.0 which focuses on fixing the build step of the library and streamlining the onboarding both as a contributor and as a library user.

Please read the release changelog for the breaking changes and the steps to upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants