-
Notifications
You must be signed in to change notification settings - Fork 205
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
eslint-plugin-import unable to resolve path to @crxjs/vite-plugin
#684
Comments
It may be related to the broken types published with
|
WorkaroundFor now, users can work around this problem by:
-import { defineManifest } from '@crxjs/vite-plugin';
+import { defineManifest } from '@crxjs/vite-plugin/dist/index.mjs';
|
Thanks for contributing to CRXJS! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within 7 days. |
not stale |
This is an automated message. Please do not reply to this comment. |
Build tool
Vite
Where do you see the problem?
Describe the bug
The
eslint-plugin-import
ruleimport/no-unresolved
cannot resolve the@crxjs/vite-plugin
import withinmanifest.config.ts
mentioned in the docs:Reproduction
StackBlitz Demo (run
pnpm eslint manifest.config.ts
): https://stackblitz.com/edit/node-vqr1sb?file=manifest.config.ts&file=.eslintrc.cjsReproduce with:
Edit
tsconfig.node.json
: add"manifest.config.ts"
and".eslintrc.cjs"
to the"include"
arrayThen add two files:
manifest.config.ts
, based off the docs:.eslintrc.cjs
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: