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
Node 16 'yarn build' is failing with the below error when I include @use "@material/layout-grid/mdc-layout-grid" in grid.scss file: ParserError: Syntax Error at line: 1, column 52.
I am using the following env/packages:
Node v16
Webpack v4
react: "^16.11.0",
@rmwc/grid: "^5.7.0"
sass: "^1.62.1"
Expected behavior: yarn build successfully completes.
Actual behavior: yarn build is failing with the error ParserError: Syntax Error at line: 1, column 52.
I need to stick on to node version 16 and React v16 for this project.
I also tried the following to troubleshoot this error but none of it worked so far.
upgrading @rmwc/grid to v6, v7 and to the latest version 8.
Added sass --load-path=node_modules/ src:build to build script in package.json
upgrading @material/layout-grid to latest version i.e, 14
Including @material/layout-grid/dist/mdc.layout-grid.css' instead of @use "@material/layout-grid/mdc-layout-grid"
The text was updated successfully, but these errors were encountered:
Node 16 'yarn build' is failing with the below error when I include
@use "@material/layout-grid/mdc-layout-grid"
in grid.scss file:ParserError: Syntax Error at line: 1, column 52
.I am using the following env/packages:
Node v16
Webpack v4
react: "^16.11.0",
@rmwc/grid: "^5.7.0"
sass: "^1.62.1"
Here is the codesandbox: https://codesandbox.io/s/rmwc-typescript-sandbox-forked-76z0s3?file=/src/index.tsx
The application runs fine without any console error but yarn build fails with node 16.
Expected behavior: yarn build successfully completes.
Actual behavior: yarn build is failing with the error
ParserError: Syntax Error at line: 1, column 52
.I need to stick on to node version 16 and React v16 for this project.
I also tried the following to troubleshoot this error but none of it worked so far.
sass --load-path=node_modules/ src:build
to build script in package.json@material/layout-grid/dist/mdc.layout-grid.css'
instead of@use "@material/layout-grid/mdc-layout-grid"
The text was updated successfully, but these errors were encountered: