Open simonihmig opened 3 months ago
@simonihmig what is your actual setup?
I ask because I have am app/assets/styles.css
which gets imported in app.js as import './assets/styles.css
just fine no error
Also have an app/assets folder with no issues
might I suggest you check any broccoli pipeline that could troll you with an exclude or something?
No, nothing special really. As you can see importing an image, using webpack assets loader. I should probably provide a reproduction though...
With webpack's asset loader setup up, you should be able to import assets like images from you app folder. That works indeed, unless you name that folder you put those assets into as...
assets
! 😅Doing so, we are getting errors like
Looking at
node_modules/.embroider/rewritten-app
, there is anassets
folder, but that one contains build output likevendor.js
. Seems there is some kind of name clashing happening here. And indeed, renaming thatapp/assets
folder to e.g.app/images
does fix that problem!This is unfortunate, as it is unexpected, and
assets
is a pretty common choice for... assets! 😏 So likely to trip up other folks!Note that this is not an issue for classic builds w/ ember-auto-import and
allowAppImports
!This is using stable v3 btw!