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

ReferenceError: Can't find variable: require #1225

Open
Cradber opened this issue Jul 3, 2022 · 1 comment
Open

ReferenceError: Can't find variable: require #1225

Cradber opened this issue Jul 3, 2022 · 1 comment

Comments

@Cradber
Copy link

Cradber commented Jul 3, 2022

While I'm using the library with Webpack 5 and I'm getting the error ReferenceError: Can't find variable: require and I didn't found a way to solve it. I don't want to use style-loader, css-loader or css-minimizer-webpack-plugin because I'm trying to style a web component using Shadow DOM and those doesn't work as well as expect. So what can I do?

@jakubpawlowicz
Copy link
Collaborator

Hey @Cradber - I'm sorry but I'm not familiar with Webpack.

require is a reserved word in Node so it should be defined. What's the environment (OS, Node.js version) you use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants