You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Failed to parse source map from '~\src\uswds\css\<no source>' file: Error: ENOENT: no such file or directory, open '~\src\uswds\css\<no source>'
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
WARNING in ./src/uswds/css/styles.css (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[5].use[2]!./node_modules/source-map-loader/dist/cjs.js!./src/uswds/css/styles.css)
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '~\src\uswds\css\<no source>' file: Error: ENOENT: no such file or directory, open '~\src\uswds\css\<no source>'
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
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
The text was updated successfully, but these errors were encountered: