Giter Club home page Giter Club logo

Comments (10)

miraries avatar miraries commented on May 27, 2024 4

@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.

burtek avatar burtek commented on May 27, 2024 1

Yeah, see it now. Had some wrong filters set in devtools console 🤦

from monaco-editor-auto-typings.

valerii15298 avatar valerii15298 commented on May 27, 2024 1

@miraries thank you very much!!!

from monaco-editor-auto-typings.

burtek avatar burtek commented on May 27, 2024

Honestly, not seeing that issue happen in the given repro. It seems to be working fine for me.

from monaco-editor-auto-typings.

ClintH avatar ClintH commented on May 27, 2024

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.

ClintH avatar ClintH commented on May 27, 2024

Screen Shot 2022-11-08 at 17 14 33

from monaco-editor-auto-typings.

miraries avatar miraries commented on May 27, 2024

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.

valerii15298 avatar valerii15298 commented on May 27, 2024

Same problem for me :(
Will be support for vite added???
Would be very much helpful...

from monaco-editor-auto-typings.

valerii15298 avatar valerii15298 commented on May 27, 2024

@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.

valerii15298 avatar valerii15298 commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.