unbuild
unbuild copied to clipboard
Failed to resolve import
Environment
node: v16.19.0
Reproduction
git clone https://github.com/gaetansenn/vunix git checkout bugs/stub-symbol yarn dev:nuxt-example
Describe the bug
I'm still facing a few problems with the build of my mono-repo project. The first problem is with the dev build when using the --stub option of the https://github.com/unjs/unbuild Here is the error when using the command: yarn dev:nuxt-example The reproduction can be found on the branch: bugs/stub-symbol with yarn dev:nuxt-example command.
nuxt-example:dev: ERROR Failed to resolve import "file:///Users/gaetansenn/Development/dewib/librairies/vunix/node_modules/jiti/lib/index.js" from "../../packages/default-preset-tailwind/dist/index.mjs". Does the file exist?
nuxt-example:dev:
nuxt-example:dev: ✔ Nitro built in 465 ms
nuxt-example:dev: ℹ Vite client warmed up in 2202ms
Additional context
My second problem is that, after updating the code on the branch bugs/stub-symbol, I encountered a problem with the Symbol() export used inside the @vunix/core package. It seems that the Symbol called from https://github.com/gaetansenn/vunix/blob/bugs/stub-symbol/packages/core/src/runtime/utils/config.ts#L175 is not returning the same symbol as the one used in https://github.com/gaetansenn/vunix/blob/bugs/stub-symbol/packages/core/src/runtime/components/elements/button/Button.vue#L66 I have added a comment to the latter version using a fixed string for the provide/inject.
Logs
No response