Skip to content

Conversation

noomorph
Copy link
Contributor

@noomorph noomorph commented Apr 2, 2022

I wasn't able to run ESLint of files due to various errors:

  • Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/util/glob-util' is not defined by "exports"
  • Failed to load plugin 'import' declared in '.eslintrc » eslint-config-airbnb
  • require() of ES modules is not supported" when package.json has "type":"module"

After a battle with dependencies and configs, package-lock.json and so on, I also noticed a few issues around the code itself, and fixed them too.

That's the result.

Thanks for the project. Honestly, it feels like you don't have time to keep it up-to-date, but anyway it still looks like the best out-of-the-box solution currently on GitHub.

P. S. I had to lock .nvmrc to Node 14.x, in fact. When running with Node 16.x, I see too many errors – so I'd suggest you to review that separately if you'd like to unlock it further.

@enuchi
Copy link
Owner

enuchi commented Apr 4, 2022

Thanks for opening this @noomorph. You're right, it's hard to keep this up to date. The main issue is some of the webpack plugins needed are not maintained so it's not easy to move to webpack 5. @kmalakoff has an open PR for this but have not had a chance to look (#103).

Thanks for pinning the .nvmrc file -- ideally should be v16. Do you know what kind of errors it was showing?

@noomorph
Copy link
Contributor Author

noomorph commented Apr 6, 2022

@enuchi looks like it comes from npm v8. It seems to be stricter:

image

@noomorph
Copy link
Contributor Author

noomorph commented Apr 6, 2022

Okay, I found the reason. Upgrading to [email protected] helped.

@noomorph noomorph requested a review from enuchi April 7, 2022 09:20
@enuchi enuchi merged commit 96ad8af into enuchi:master Apr 12, 2022
@enuchi
Copy link
Owner

enuchi commented Apr 12, 2022

Thanks for the work on this @noomorph, much appreciated

@noomorph noomorph deleted the build/fix-lint-issues branch May 4, 2022 05:32
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