Comments (10)
@valerii15298 Do npm i @esbuild-plugins/node-modules-polyfill
, then add the following resolve
config in your vite.config.js
:
export default defineConfig({
resolve: {
alias: {
path: 'rollup-plugin-node-polyfills/polyfills/path'
}
}
});
this just adds a polyfill for the path
module.
from monaco-editor-auto-typings.
Yeah, see it now. Had some wrong filters set in devtools console 🤦
from monaco-editor-auto-typings.
@miraries thank you very much!!!
from monaco-editor-auto-typings.
Honestly, not seeing that issue happen in the given repro. It seems to be working fine for me.
from monaco-editor-auto-typings.
Thanks for taking a look! You don't see the error in the DevTools console? I see it using Edge & Chrome browsers.
from monaco-editor-auto-typings.
from monaco-editor-auto-typings.
Just ran into this, I'm using vite as well (with svelte kit).
This works fine in the demo due to path-browserify
, so fixed it by adding a similar polyfill for the path
module using an esbuild plugin from this gist.
from monaco-editor-auto-typings.
Same problem for me :(
Will be support for vite added???
Would be very much helpful...
from monaco-editor-auto-typings.
@miraries can you please share what exactly and how did you use from that gist? I am looking into it but there are so much stuff that I cannot understand what I should take from it...
from monaco-editor-auto-typings.
@miraries btw, I made it work by installing only npm i rollup-plugin-node-polyfills
and it seems to work too without @esbuild-plugins/node-modules-polyfill
package
from monaco-editor-auto-typings.
Related Issues (20)
- Uncaught (in promise) Error: Could not find source file: 'inmemory://model/node_modules HOT 4
- QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'PACKAGE' exceeded the quota. HOT 1
- [BUG] Custom version is not downloaded - latest is downloaded instead HOT 1
- [BUG] Not able to load types to .js files imports
- [FEEDBACK] Reload all packages after setVersions HOT 2
- [BUG] not working for "react-dom/client"
- [REQUEST] build the file + the imported package HOT 1
- [REQUEST] Provide types for JavaScript (non-TypeScript) documents HOT 3
- [BUG] Document the `monaco` option
- [BUG] Cannot find module 'moment' or its corresponding type declarations.(2307)
- [BUG] Not all Node Types are imported
- [BUG] Official demo doesn't work for react HOT 2
- [BUG] Packages for the web do not work with auto typings HOT 1
- [BUG] Unable to load @types/lodash reference command not recognized successfully
- [BUG] Does not work with zod types
- [BUG] Does not work with packages which do not specify `types` or `typings`
- [REQUEST] Use WebContainer to run node in the browser to fetch files
- [BUG] TypeError: path.dirname is not a function HOT 1
- [BUG] Demo website broken?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monaco-editor-auto-typings.