Closed benmccann closed 4 years ago
Gahhh!!!!! :sob: I really thought I had them all fixed
Actually, I just tested this and the error showed up for me:
cross-env NODE_ENV=production sapper build --legacy
Building... @rollup/plugin-typescript TS5023: Unknown compiler option 'files'.
[!] (plugin typescript) Error: @rollup/plugin-typescript: Couldn't process compiler options Error: @rollup/plugin-typescript: Couldn't process compiler options
Maybe the issue is just that it printed multiple errors and you missed the explanation above the last error? I'm not sure what Rollup would do here, but if we can make the output closer I guess that we could make an enhancement request to Sapper
Oh, so it works during prod
but not dev
Ohh. Yeah, I was testing with npm run build
I filed an issue and updated this PR to use the new issue link. It's probably still worth upgrading Sapper here since it fixes three other issues with swallowing errors. Too bad there's a fourth :stuck_out_tongue:
The workaround is still necessary for me on Sapper >= 0.27.15.
For example, try passing
as options to
typescript(/* here */)
. You get the opaque errorwithout the explanatory warning