asafamr / monaco-svelte Goto Github PK
View Code? Open in Web Editor NEWMonaco editor Svetle language tools
License: MIT License
Monaco editor Svetle language tools
License: MIT License
Hi there,
very important project here given Monaco doesn’t natively support svelte yet (and I don’t see MSFT doing so any time soon).
Are there any plans to make this an NPM package that we can easily embed in our projects?
that would be fantastic but not problems if not.
Describe the bug
Using svelte-language-server in web browser.
Version 0.13.9 works fine; if changing to v0.14.0+ it raises an error in web browser. Please check screenshot below
To Reproduce
Source code is here.
Open package.json, find the following line
"svelte-language-server": "^0.13.9",
Replace it with following line
"svelte-language-server": "^0.14.0",
Then npm install
and build the project and refresh the index.html, the error raises.
Expected behavior
This error shouldn't occur
Screenshots
Additional context
This error is most likely caused by circular dependency introduced in v0.14
{
code: 'CIRCULAR_DEPENDENCY',
cycle: [
'node_modules\\svelte-language-server\\dist\\src\\plugins\\typescript\\features\\utils.js',
'node_modules\\svelte-language-server\\dist\\src\\plugins\\typescript\\ComponentInfoProvider.js',
'node_modules\\svelte-language-server\\dist\\src\\plugins\\typescript\\features\\utils.js'
],
importer: 'node_modules\\svelte-language-server\\dist\\src\\plugins\\typescript\\features\\utils.js',
message: 'Circular dependency: node_modules\\svelte-language-server\\dist\\src\\plugins\\typescript\\features\\utils.js -> node_modules\\svelte-language-server\\dist\\src\\plugins\\typescript\\ComponentInfoProvider.js -> node_modules\\svelte-language-server\\dist\\src\\plugins\\typescript\\features\\utils.js',
toString: [Function (anonymous)]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.