-
Notifications
You must be signed in to change notification settings - Fork 142
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
Imported css is duplicated during ember serve development build with fastboot #1456
Comments
Hey 👋 thanks for the issue report! We just tried to confirm this using your reproduction repo and we got a different error about ember-cli-head 🤔
Can you take a look at your reproduction repo and make sure that it's working? thanks 👍 |
I'm not sure how how you got to that error message, I just cloned the repo, ran I did get an entirely different error though which wasn't there at the time I posted this issue:
However this could be fixed by using the solution provided here: emberjs/data#6690 (comment), practically just adding The node version I'm using is 16. |
@mansona have you had a chance to look at this since then? |
Somewhat related, but we are getting duplicated css and js lines in our |
my bet is that you're on 3.4.0 version of embroider core and ran into #1660 if that is the case your report is unrelated to the initial reported issue here |
Yup, confirmed, using 3.4.0 of embroider core. I'll wait for the dot release |
@jknight12882 patch release is out 👍 |
Hi!
Using embroider with fastboot in a fresh project results in the
<link rel="stylesheet">
tags that are injected in the builtdist/index.html
file to be duplicated when importing css withimport
statements.Reproduction steps:
ember new css-repro --embroider
~ embroider@2.1.1cd css-repro
ember install ember-cli-fastboot
random.css
in./app
import './random.css'
in./app/app.js
ember serve
./app/random.css
and save it a couple of times./dist/index.html
, there will be multiple duplicate<link>
s for stylesheetsRepro repo: https://github.com/truumahn/embroider-css-inject-repro/tree/main ~ embroider@unstable
The issue occurs both with
embroider@2.1.1
andembroider@3.0.x
This only happens during
ember serve
.I suppose the issue is somewhere around the MiniCssExtract webpack plugin,
css-loader
or maybe theember-auto-import
configuraton.Also, manually removing the duplicate links and then triggering a rebuild results in all the previously duplicated links to be added again, so the links to inject is stored somewhere during the build and instead of replacing them they are readded each time.
The text was updated successfully, but these errors were encountered: