Skip to content

Commit

Permalink
fix: fix parcel lightningcss dep resolving issue
Browse files Browse the repository at this point in the history
What?
- Parcel start/build fails with error:
```
@parcel/transformer-css: Could not resolve module
"/workspaces/samsaadhanii-concordance/node_modules/lightningcss/lightningcss.linux-arm64-gnu.node"
from "/workspaces/samsaadhanii-concordance/node_modules/lightningcss/node/index.js"
```
- Guess it's most likely due to using linux docker image in macos (arm).
- Adding `lightningcss` explicity as dep resolves this error.

More details on this:
parcel-bundler/lightningcss#335
  • Loading branch information
vipranarayan14 committed Jul 19, 2023
1 parent 3250d2b commit 57eb437
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 70 deletions.
141 changes: 71 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"devDependencies": {
"@parcel/transformer-sass": "^2.8.0",
"lightningcss": "^1.21.5",
"parcel": "^2.8.0",
"posthtml-beautify": "^0.7.0",
"posthtml-expressions": "^1.11.0",
Expand Down

0 comments on commit 57eb437

Please sign in to comment.