-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
optimizer-htmlnano: contents.filter is not a function #7906
Labels
✖️ Non-Parcel bug
Bugs related to dependencies or plugins
Comments
Sorry about the bug! I deprecated this new version of htmlnano (2.0.1). Please use 2.0.0 for the time being until the bug is fixed. |
ronnix
added a commit
to Delegation-numerique-en-sante/mesconseilscovid
that referenced
this issue
Apr 6, 2022
cf. parcel-bundler/parcel#7906 Ce n’est pas une dépendance directe. Avec npm 8.3, on pourrait définir des "overrides", mais là on est en npm 6.x donc on utilise npm-force-resolutions.
ronnix
added a commit
to Delegation-numerique-en-sante/mesconseilscovid
that referenced
this issue
Apr 6, 2022
cf. parcel-bundler/parcel#7906 Ce n’est pas une dépendance directe. Avec npm 8.3, on pourrait définir des "overrides", mais là on est en npm 6.x donc on utilise npm-force-resolutions.
ronnix
added a commit
to Delegation-numerique-en-sante/mesconseilscovid
that referenced
this issue
Apr 6, 2022
cf. parcel-bundler/parcel#7906 Ce n’est pas une dépendance directe. Avec npm 8.3, on pourrait définir des "overrides", mais là on est en npm 6.x donc on utilise npm-force-resolutions.
I released the new version of htmlnano (2.0.2) with the bugfix. |
Awesome. It works for me, thank you for your efforts! 👏 |
davidbgk
pushed a commit
to Delegation-numerique-en-sante/mesconseilscovid
that referenced
this issue
Apr 8, 2022
cf. parcel-bundler/parcel#7906 Ce n’est pas une dépendance directe. Avec npm 8.3, on pourrait définir des "overrides", mais là on est en npm 6.x donc on utilise npm-force-resolutions.
I'm also facing something similar issue while trying to build( package.json
Error:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 bug report
A particular inline SVG crashes the build. In development it is fine.
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Should build
😯 Current Behavior
💁 Possible Solution
Hacked in
if(!contents.filter) return contents;
in node_modules/htmlnano/lib/modules/removeComments.js:37
🔦 Context
Want to include an SVG inline instead of moving it around separately.
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: