Skip to content
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

Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer. #52

Open
stevenhansel opened this issue May 24, 2022 · 2 comments · May be fixed by #60
Open

Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer. #52

stevenhansel opened this issue May 24, 2022 · 2 comments · May be fixed by #60

Comments

@stevenhansel
Copy link

stevenhansel commented May 24, 2022

Got this issue when running coc-svelte with svelte-kit and TS. The coc-svelte won't lint my code and give any error messages when the this error below pop ups

You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.
initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
[svelte:] 
@stevenhansel
Copy link
Author

Found out that this happens exactly when i start writing code inside <script lang="ts></script>.

So for example, this code below won't trigger the error

<script lang="ts"></script>

<div />

<style></style>

But this will:

<script lang="ts">
console.log("Annoying error :(");
</script>

<div />

<style></style>

I will share more updates and hopefully open a PR when I have the time

@rudolfs
Copy link

rudolfs commented Oct 4, 2022

Also just ran into this issue. It started happening when we upgraded our project to Node 18.

Screenshot 2022-10-04 at 17 59 34

Saw something similar in the language-tools repo, might be related:
sveltejs/language-tools#1455
sveltejs/language-tools#1464

Haven't tested this, but it might be that upgrading language-tools might resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants