imagemin / imagemin-svgo

SVGO plugin for imagemin
MIT License
125 stars 28 forks source link

Missing main or exports field #52

Closed tomasklaen closed 2 years ago

tomasklaen commented 3 years ago

Node 16.9.1

DeprecationWarning: No "main" or "exports" field defined in the package.json for ".../imagemin-svgo" resolving the main entry point "index.js"
replete commented 3 years ago

Node 16.10.0

+1 , getting this issue when implementing a workaround for gulp-imagemin by importing the imagemin-* pages directly.

See this ticket ongulp-imagemin

replete commented 3 years ago
node:63922) [DEP0151] DeprecationWarning: No "main" or "exports" field defined in the package.json for /Users/phil/dev/frontend-boilerplate/node_modules/imagemin-svgo/ resolving the main entry point "index.js", imported from /Users/phil/dev/frontend-boilerplate/gulpfile.js.
Default "index" lookups for the main are deprecated for ES modules.
(Use `node --trace-deprecation ...` to show where the warning was created)
quadmachine commented 3 years ago

Hi, it would be nice to merge PR from replete which solves this warning. Cheers

1000ch commented 2 years ago

Fixed by v10.0.1.