-
Notifications
You must be signed in to change notification settings - Fork 4
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
Exports for typescript may not be correct #32
Comments
@bienzaaron the fix in #33 didn't work for me: when I do the same repro as in the original post, I get the following now with # yarn build
yarn run v1.22.22
$ run-p type-check "build-only {@}" --
$ vue-tsc --build
$ vite build
vite v6.0.6 building for production...
✓ 2 modules transformed.
x Build failed in 72ms
error during build:
[commonjs--resolver] Failed to resolve entry for package "piscina-locks". The package may have incorrect main/module/exports specified in its package.json.
at packageEntryFailure (file:///private/tmp/vue-project/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:16462:15)
at resolvePackageEntry (file:///private/tmp/vue-project/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:16459:3)
at tryNodeResolve (file:///private/tmp/vue-project/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:16324:18)
at Object.resolveId (file:///private/tmp/vue-project/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:16109:19)
at Object.handler (file:///private/tmp/vue-project/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:51072:15)
at file:///private/tmp/vue-project/node_modules/rollup/dist/es/shared/node-entry.js:20874:40
at async PluginDriver.hookFirstAndGetPlugin (file:///private/tmp/vue-project/node_modules/rollup/dist/es/shared/node-entry.js:20774:28)
at async resolveId (file:///private/tmp/vue-project/node_modules/rollup/dist/es/shared/node-entry.js:19378:26)
at async ModuleLoader.resolveId (file:///private/tmp/vue-project/node_modules/rollup/dist/es/shared/node-entry.js:19807:15)
at async Object.resolveId (file:///private/tmp/vue-project/node_modules/vite/dist/node/chunks/dep-0AosnpPU.js:5658:10)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ERROR: "build-only" exited with 1.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. I get something similar with |
@benknoble should be good now on 3.1.1 |
Looks like #72 is working for me so far, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiler Error
Possible solution
It looks like the
types
line inpackage.json
might also need to be in theexports
spec, but I'm out of my depth here.Workaround
Use
// @ts-expect-error
to ignore this particular error until this issue is resolved.MRE
Here are the various tsconfig files added to the MRE, in case that helps:
The text was updated successfully, but these errors were encountered: