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
[Ripple] using causes error (SassError: Can't find stylesheet to import.) #5734
Comments
This is a bug with |
Dear @asyncLiz, I already read this issue deeply. also I use Because based on my information about issue #804 and its comments, my issue is not related to it. In this current issue I told about different implementation of ripple and button, something that makes the ripple document wrong. |
If - @use "~@material/ripple"; // webpackImporter: true
+ @use "@material/ripple"; // webpackImporter: false It is difficult to debug build problems without a reproduction. Can you link to a repository with a working |
Dear @asyncLiz, In my last comment, I guess maybe you don't read my issue, now with your new comment, I pretty make sure you don't read it. My issue is not exactly my issue or my implementation. it is an issue comes from Ripple. when I use
I mean the BUT, when the
It means the So, it means the |
Rest assured, I have read all of your comments thoroughly. I just tried compiling your ripple code and it works fine with Sass. Sass does not use However, You mentioned that you are already doing this, and since some of the Sass is working I'm assuming you're correctly using Dart's As it stands, there is no build issue with ripple. The |
Bug report
I saw a weird thing, when I write the example exactly look like the given link the
@use '@material/button';
works well and the parser could see the_index.scss
inside thenode_modules/@material/button
folder. but when I switch to your need, I mean@use "@material/ripple";
exactly like this link, the parser couldn't see the_index.scss
inside thenode_modules/@material/ripple
folder and undoubtedly, it comes from thepackage.json
of the ripple module. because in thepackage.json
ofripple
module there is"main": "dist/mdc.ripple.js"
and"module": "index.js"
which I don't know why the author declares it, we're forced to use@use "~@material/ripple/index";
just for this declarations.Steps to reproduce
app.scss
is exactly like following:Actual behavior
when we run the
npm run build
command withinwebpack --mode=production
command the bellow error appeared:Expected behavior
the ripple should work like button example of this link
Your Environment:
Additional context
Why the
package.json
of button component doesn't have"main"
and"module"
key/value but the ripple component has them? what's the usage?Possible solution
For our need, omitting the
"main"
and"module"
key/value from thepackage.json
of the ripple component.The text was updated successfully, but these errors were encountered: