sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7k stars 434 forks source link

Rollup dev server dev traces link to __sapper__ folder instead of typescript source #1712

Open ubershmekel opened 3 years ago

ubershmekel commented 3 years ago

Describe the bug While using the dev server, I would like server crashes to link to the typescript source files in which they occur. Instead the crashes print out the JavaScript generated file paths.

Logs TypeError: Cannot read property 'players' of undefined at sendUsersList (D:\1stuff\dev\2021\sapper-template-rollup-master__sapper\dev\server\server.js:5803:28) at Socket. (D:\1stuff\dev\2021\sapper-template-rollup-master\sapper__\dev\server\server.js:5856:9) at Socket.emit (node:events:376:20) at D:\1stuff\dev\2021\sapper-template-rollup-master\node_modules\socket.io\dist\socket.js:434:28 at processTicksAndRejections (node:internal/process/task_queues:75:11)

Server crashed

Notice the js files and __sapper__ folder, instead of the actual server.ts source file. I've tried to use the advice from here: https://stackoverflow.com/questions/63218218/rollup-is-not-generating-typescript-sourcemap but it didn't seem to work.

To Reproduce Please make sure you've tested with the latest versions of Svelte and Sapper.

"sapper": "^0.28.0",
"svelte": "^3.17.3",

Information about your Sapper Installation:

Severity How severe an issue is this bug to you? Is this annoying, blocking some users, blocking an upgrade or blocking your usage of Sapper entirely?

It's a bit annoying, but I can work around it.