Lightning CSS Issues

After updating plasmo my github action keeps failing due to:
Could not resolve module "/home/runner/work/caddie-dash/caddie-dash/node\_modules/lightningcss/lightningcss.linux-x64-gnu.node" from "/home/runner/work/caddie-dash/caddie-dash/node\_modules/lightningcss/node/index.js"
Could not resolve module "/home/runner/work/caddie-dash/caddie-dash/node\_modules/lightningcss/lightningcss.linux-x64-gnu.node" from "/home/runner/work/caddie-dash/caddie-dash/node\_modules/lightningcss/node/index.js"
10 Replies
nahtnam
nahtnamOP•2y ago
TypeError: wn?.clearLine is not a function
at vn (file:///home/runner/work/caddie-dash/caddie-dash/node_modules/plasmo/dist/index.js:140:28393)
at async Qm (file:///home/runner/work/caddie-dash/caddie-dash/node_modules/plasmo/dist/index.js:140:28903)
TypeError: wn?.clearLine is not a function
at vn (file:///home/runner/work/caddie-dash/caddie-dash/node_modules/plasmo/dist/index.js:140:28393)
at async Qm (file:///home/runner/work/caddie-dash/caddie-dash/node_modules/plasmo/dist/index.js:140:28903)
At the bottom ^
nahtnam
nahtnamOP•2y ago
Similar issue: https://github.com/parcel-bundler/lightningcss/issues/386 I'm running the latest LTS node (18.13.0) in my actions
GitHub
possible to use in stackblitz? · Issue #386 · parcel-bundler/lightn...
When running in stackblitz, I get this error when importing lightningcss: Error: Cannot find module '../lightningcss.linux-x64-gnu.node' Require stack: - /home/projects/node-n6my9w/...
nahtnam
nahtnamOP•2y ago
This is while running plasmo build btw, local dev server works fine Local build works too, so much be something about actions
lab
lab•2y ago
hmmm that's weird.... which version of plasmo is this btw? lightningcss is already upstream on parcel so that's really weird for it to cause error :-?.... that error indicates the linux build is missing...
nahtnam
nahtnamOP•2y ago
Unfortunately I made a lot of updates all at once, so I can't say for certain that this is plasmo, but I went from 62 to 63
nahtnam
nahtnamOP•2y ago
If you want I can downgrade and see if that fixes it
lab
lab•2y ago
yeah 63 is the one that we moved to lightningcss what runtime is your action running in? i.e, what type of action runner is it - linux/mac/windwos? Can you try switching to a MAC environment?
nahtnam
nahtnamOP•2y ago
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'npm'

- run: npm ci
- run: npm run build
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'npm'

- run: npm ci
- run: npm run build
Arcane
Arcane•2y ago
@nahtnam has reached level 9. GG!
nahtnam
nahtnamOP•2y ago
Lemme try, just in the middle of something, I'll get back to you soon No idea what happened but it just works now? weird... I reverted to 0.62 so my build would pass, opened a pr to upgrade back to 63 and it passed merged it in and it works ¯\_(ツ)_/¯ Maybe some bad caching
Want results from more Discord servers?
Add your server