-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The CSS sourcemap is wrong while using TypeScript #187
Comments
We just released a new version of |
@benmccann no, after updating svelte-loader to 3.1.2, this issue is still happening. |
This comment has been minimized.
This comment has been minimized.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
When using the
sveltejs/template-webpack
with TypeScript enabled, the inline CSS source map goes wrong and source contents can't be loaded.Steps to Reproduce
git clone [email protected]:sveltejs/template-webpack.git
npm install
node scripts/setupTypeScript.js
npm install
againnpm run dev
http://localhost:8080/
with Chrome<h1>
elementStyle
panel:Sources
tab:Could not load content for http://localhost:8080/src/App.svelte (HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)
Possible Cause
I tried parsing the inline sourcemap inside
<style>
element, and it seems thatsourcesContent
property is missing:The text was updated successfully, but these errors were encountered: