-
Notifications
You must be signed in to change notification settings - Fork 16
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
Two or more css modules import return error Uncaught ReferenceError: __content_placeholder__ is not defined #74
Comments
Thanks you very much for the repository to reproduce your issue, that will be very helpfull, I will look into it later |
Hi @adityasingh773 , Please try v3.1.2 |
Thank you @indooorsman , v3.1.2 fixes the issue. |
@indooorsman , the issue persists if we change esbuild config from |
I've tested
|
Can you try deleting |
|
@indooorsman , I created a new branch to replicate the behaviour. Here, i serve a local directory using |
I'm facing the same (?) issue :
This issue might be the reason actually : |
The plugin works fine when I have a single
index.module.css
file in my project with settinginject: true
But as soon as I add two or more css modules in my project, my build fails and I get this error:
Uncaught ReferenceError: __content_placeholder__ is not defined
When I look at output js file, I see this:
which explains why I get the error. But I am not sure how to fix it.
I have created a public repository with two branches to easily replicate the behaviour.
The text was updated successfully, but these errors were encountered: