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

Add "main" to package.json to fix eslint issues #356

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

vimalloc
Copy link
Contributor

Description 📖

Using eslint, I'm getting an import/no-unresolved: Unable to resolve path to module 'vite-plugin-ruby' when it clearly exists.

Background 📜

Looking at this ticket I believe that is happening because there is no main key in the package.json. Note that this error is not happening with the vite-rails-plugin, which does specify the main key.

The Fix 🔨

This updates the package.json to include the main key.

Using eslint, I'm getting an `import/no-unresolved: Unable to resolve path to module 'vite-plugin-ruby'` when it clearly exists. Looking at [this ticket](browserify/resolve#222) I believe that is happening because there is no `main` key in the package.json. This updates the package.json to include this.
@ElMassimo
Copy link
Owner

Thanks Lily!

@ElMassimo ElMassimo merged commit fcf453c into ElMassimo:main Apr 28, 2023
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

Successfully merging this pull request may close these issues.

2 participants