Open steinybot opened 2 months ago
Ah for some reason includeNodeModules
is false
for parcel build
but not parcel serve
This fixes it:
"targets": {
"main": {
"includeNodeModules": {
"*.scss": true
}
}
}
It'd be really nice if this was easier to discover.
🐛 bug report
parcel serve
works fine butparcel build
fails with:This looks to be the same issue as in https://github.com/parcel-bundler/parcel/issues/4609.
🎛 Configuration (.babelrc, package.json, cli command)
I don't have babel config. Should I?
🤔 Expected Behavior
parcel build
should behave the same asparcel serve
w.r.t resolving files.😯 Current Behavior
💁 Possible Solution
It makes no sense. I tried debugging it right up to
resolve
in@parcel/node-resolver-core
where it callsresolver.resolveAsync(options)
which is the Rust resolver so I can't debug any further. How to debug the Rust resolver?What is bizare is that both
build
andserve
pass the same options:but
serve
comes back with a result butbuild
does not.There were some other options somewhere else and one had:
and the other had:
Not sure if that is relevant or not.
🔦 Context
I can't build and publish my CV to GitHub pages.
💻 Code Sample
https://github.com/steinybot/cv
🌍 Your Environment