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

Error importing this plugin in Vite application #218

Closed
giacomorebonato opened this issue Feb 28, 2023 · 2 comments
Closed

Error importing this plugin in Vite application #218

giacomorebonato opened this issue Feb 28, 2023 · 2 comments

Comments

@giacomorebonato
Copy link

Hi and many thanks for creating this plugin, it's very useful to me!

I am trying to run this plugin in the browser using Vite and eslint4b, but I am getting an error when I import it:

[ERROR] Could not read from file: /Users/grebonato/Code/mino-lint/virtual:eslint4b_eslint

node_modules/eslint-plugin-jsonc/dist/utils/index.js:117:37:
  117 │         ruleMap = map = new (require("eslint").Linter)().getRules();

Here is the repository with the error.
It's a Vite project and I am using vite-plugin-eslint4b to load eslint.

Do you know what's going on?
I tried to figure out by looking at how you created the playground, but I am missing something.

@ota-meshi
Copy link
Owner

ota-meshi commented Mar 1, 2023

I think this plugin is still not bundled well by Vite. The playground for this plugin still uses vuepress v1 and is internally bundled by webpack.

@giacomorebonato
Copy link
Author

Thanks for quick feedback. I'll see if I can bring any help on this side.

@ota-meshi ota-meshi closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2024
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

2 participants