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

How to import a stub package in a Nuxt project? #447

Open
1 task
jojotechs opened this issue Nov 28, 2024 · 0 comments
Open
1 task

How to import a stub package in a Nuxt project? #447

jojotechs opened this issue Nov 28, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@jojotechs
Copy link

jojotechs commented Nov 28, 2024

Hi! I encountered an issue when trying to import a workspace package (built by unbuild stub mode) in my Nuxt project during development.

The error occurs in devtools:

The requested module '/_nuxt/@fs/xxxxxx/node_modules/.pnpm/[email protected]/node_modules/jiti/dist/jiti.cjs?import&v=87bf46ed' does not provide an export named 'default' (at jiti.mjs?v=87bf46ed:2:8)
Environment:

Nuxt 3
unbuild for workspace package
jiti 2.4.0
pnpm workspace

If you have time, could you please take a look at my project: https://github.com/jojotechs/grey-parrot-i18n/blob/c4ee88da28f383f0fde70a6b1669e9b215e56e15/packages/dashboard/package.json#L17

Is this a known issue with jiti's ESM interop? Any suggestions would be appreciated.

URLs

No response

Additional information

  • Would you be willing to help?
@jojotechs jojotechs added the documentation Improvements or additions to documentation label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant