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

Create .htmlnanorc #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create .htmlnanorc #224

wants to merge 1 commit into from

Conversation

whilei
Copy link
Contributor

@whilei whilei commented Oct 9, 2021

yarn build failed for me; I saw tree.render is not a function.

This fixes it works around it for me.

https://stackoverflow.com/a/67133536

Context

cc/ @ingalls

yarn build
yarn run v1.19.0
$ NODE_ENV=prodution parcel build index.html login/index.html --public-url='/admin/' --no-source-maps
🚨  /home/ia/dev/mapbox/Hecate/web/src/modals/User.vue: tree.render is not a function
    at /home/ia/dev/mapbox/Hecate/web/node_modules/htmlnano/lib/modules/minifySvg.js:19:23
    at /home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:91:45
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:105:26)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:111:5)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:105:17)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:111:5)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:105:17)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:111:5)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:105:17)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:111:5)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:105:17)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:111:5)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:105:17)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:111:5)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:105:17)
    at traverse (/home/ia/dev/mapbox/Hecate/web/node_modules/posthtml/lib/api.js:111:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
qfi 10-09 07:22:19 ~/dev/mapbox/Hecate/web dev %
mv htmlnanorc .htmlnanorc 
czu 10-09 07:22:32 ~/dev/mapbox/Hecate/web dev %
yarn build
yarn run v1.19.0
$ NODE_ENV=prodution parcel build index.html login/index.html --public-url='/admin/' --no-source-maps
✨  Built in 8.80s.

dist/main.0500f194.js                   844.72 KB    8.45s
dist/assembly.deb7806c.css              174.47 KB     14ms
dist/assembly.13c84db5.js                49.02 KB     12ms
dist/favicon.692d1453.ico                15.04 KB     14ms
dist/mapbox-gl-geocoder.7f2c12df.css      3.58 KB      8ms
dist/login/index.html                     1.67 KB     13ms
dist/index.html                             776 B    276ms
Done in 9.23s.

This solves an failure in 'yarn build' from 'tree.render is not a function'
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.

None yet

1 participant