Skip to content
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

@rmwc/grid - node 16 build fails with ParserError: Syntax Error when mdc.layout-grid stylesheet imported #956

Open
ashrithapb opened this issue May 31, 2023 · 2 comments

Comments

@ashrithapb
Copy link

ashrithapb commented May 31, 2023

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.

  • 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"
@EmiBemi
Copy link
Member

EmiBemi commented Jun 6, 2023

Thanks for the issue! As we are currently working hard on getting material v14 support out, we will not have much time to solve issues at the moment.

Hopefully we will get back to this ticket as soon as possible and pull requests are more than welcome!

@jensborch
Copy link
Member

@ashrithapb Version 14 has been released, and we kindly request you to retest and verify whether the issue persists in the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants