Open jeran-urban opened 1 year ago
looks like the warning is thrown from this update to CRA: https://github.com/facebook/create-react-app/pull/8227
Hello @jeremyzilar are you still experiencing these warnings from compile?
If so, can you share more information on your project? It may help to have your gulpfile, webpack config, and start script as a start.
I also wanted to note, USWDS-compile is out of beta with our release of 1.0.0
.
@mahoneycm does your comment still apply to this issue? The mention seems incorrect.
I was able to confirm this issue.
How I tested
npm run install && npm run init
.npm start
.localhost:8080
Sources
tab. src/_styles
.@mejiaj I created a webpack 5 test repo and I was able to properly spin up the app with no errors or compilation warnings.
However, revisiting and following your steps to view the styles, I see the same <no source>
error.
Describe the bug
the output of the styles.css.map shows the following:
... swds-core/src/styles/mixins/typography/typeset.scss","../../../node_modules/%40uswds/uswds/packages/uswds-core/src/styles/mixins/utilities/_margin.scss","../../../node_modules/%40uswds/uswds/packages/uswds-core/src/styles/placeholders/_forms.scss","../../../node_modules/%40uswds/uswds/packages/uswds-core/src/styles/mixins/utilities/_font.scss","../../../node_modules/%40uswds/uswds/packages/uswds-core/src/styles/mixins/utilities/_line-height.scss","<no source>", ...
This no source option is throwing compile warnings for webpack 5
Steps to reproduce the bug
run uswds init run npm start on a project with webpack 5
If I manually update that no source entry in the list to anything that exists (reuse styles.css again) then the warnings and errors go away.
Expected Behavior
I would expect all css being mapped by the default implementation of the library to have a corresponding source in the map
Related code
No response
Screenshots
No response
System setup
"@uswds/compile": "^1.0.0-beta.3", "@uswds/uswds": "^3.1.0",
Additional context
No response
Code of Conduct