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

rollupjs build returning an error @ html-tags sub-package #6

Closed
atherdon opened this issue Jul 31, 2022 · 3 comments
Closed

rollupjs build returning an error @ html-tags sub-package #6

atherdon opened this issue Jul 31, 2022 · 3 comments

Comments

@atherdon
Copy link

Hi @sindresorhus, nice to meet you - i'm a huge fan of your work.

today I tried to install create-html-element pkg in my project and get an error from Rollupjs binder.
not sure if it should be fixed here, but want to let you know.

trace that I get in my CLI

[!] Error: 'default' is not exported by node_modules/html-tags/html-tags-void.json, imported by /**/node_modules/html-tags/html-tags-void.json?commonjs-proxy
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
/**/node_modules/html-tags/html-tags-void.json?commonjs-proxy (1:9)
1: export { default } from "/**/node_modules/html-tags/html-tags-void.json";
            ^
Error: 'default' is not exported by node_modules/html-tags/html-tags-void.json, imported by /**/node_modules/html-tags/html-tags-void.json?commonjs-proxy
    at error (/**/node_modules/rollup/dist/shared/rollup.js:198:30)
    

I assume it's related to this line: https://github.com/sindresorhus/create-html-element/blob/main/index.js#L2

@sindresorhus
Copy link
Owner

It looks like a problem with Rollup. You may need to enable JSON support in some Rollup config.

@atherdon
Copy link
Author

thank you - will try right now

@atherdon
Copy link
Author

it was an issue with my project setup, thank you!
i`m a huge fan

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

No branches or pull requests

2 participants