-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Parcel can`t find module "@parcel/transformer-sass" and callback must be a function #7211
Comments
Same issue here on OSX |
I'm having similar issues on Windows. Here's the error I receive when I try to import an Run with
This is what I get when I run
This is my package.json:
Here's my
Here's my
Running Parcel v2.0.0, node v14.18.0, npm 6.14.15 |
same here |
Can someone please provide a full reproduction as a zip file or git repo? |
+1 it happens on all projects when I'm trying to add SASS file on macOSx The transformer-sass package is in the folder but it don't recognize it. Parcel v2.0.0 Reproduce steps:
|
Same issue with Stylus. I've tried to install it myself, but no luck. Node 16.3, Parcel 2.0.0 |
Seems like this code is returning null: from installPackage.js let fromPkgPath = await resolveConfig(
fs,
from,
['package.json'],
projectRoot,
); Manually installing it doesnt work either |
This is fixed in Thanks to Daniel for the heads up: https://twitter.com/danielbisch/status/1457728155813306369 This can be closed |
Looks like this introduced a new issue if anyone is checking: |
There is something odd going on with module resolution for @parcel/transformer-sass in particular. My project looks like this
If @parcel/transformer-sass is installed in package.json (2), we get Can't replicate with other plugins like @parcel/transformer-stylus. This only happens, of course, when --no-autoinstall is set. |
This issue still appears if you install Parcel as a dependency. It must be installed as a dev dependency: |
this will fix the problem |
On top of running |
In my case, it was because of the |
what helped me solve the issue is installing parcel globally npm install -g parcel then npm install --save-dev parcel |
🐛 bug report
I want to create my simple project with Parcell. But I can`t use scss for it because Parcel cannot find plugin "@parcel/transformer-sass".
🎛 Configuration (.babelrc, package.json, cli command)
{
"name": "parcel-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"source": "src/index.html",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"start": "parcel",
"build": "parcel build"
},
"devDependencies": {
"@parcel/transformer-sass": "^2.0.0",
"parcel": "^2.0.0",
"sass": "^1.43.4"
}
}
🤔 Expected Behavior
I expect same like this
😯 Current Behavior
When I wrote
<link rel="stylesheet" href="index.scss">
I saw the following:
When I restarted Parcel I saw
I added @parcel/transformer-sass manually to devDependencies, but it didn't solve the problem
💁 Possible Solution
Maybe I need to use earlier versions of Parcel.
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: