Giter Site home page Giter Site logo

Comments (9)

kevinrenskers avatar kevinrenskers commented on May 26, 2024 1

I think you could maybe just use * as the version number to solve other problems. For example SvelteKit now depends on Vite ^3.1.0-beta.1 which is causing conflicts with vite-plugin-markdown:

npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR!   peer vite@"^3.1.0-beta.1" from @sveltejs/[email protected]
npm ERR!   node_modules/@sveltejs/kit
npm ERR!     dev @sveltejs/kit@"next" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev vite-plugin-markdown@"^2.0.2" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vite
npm ERR!   peer vite@"^2.0.0 || ^3.0.0" from [email protected]
npm ERR!   node_modules/vite-plugin-markdown
npm ERR!     dev vite-plugin-markdown@"^2.0.2" from the root project

from vite-plugin-markdown.

jchalex avatar jchalex commented on May 26, 2024

+1

from vite-plugin-markdown.

jchalex avatar jchalex commented on May 26, 2024
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR!   dev vite@"^3.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^2.0.0" from [email protected]
npm ERR! node_modules/vite-plugin-markdown
npm ERR!   dev vite-plugin-markdown@"*" from the root project

from vite-plugin-markdown.

hmsk avatar hmsk commented on May 26, 2024

Try https://github.com/hmsk/vite-plugin-markdown/releases/tag/v2.1.0

from vite-plugin-markdown.

kevinrenskers avatar kevinrenskers commented on May 26, 2024

Thanks!

from vite-plugin-markdown.

arrowtype avatar arrowtype commented on May 26, 2024

Sorry, I’m kind of a JS noob, and trying to set up markdown support in a brand-new SvelteKit app (Svelte 3.44.0)... @kevinrenskers is there a current workaround for this, or should I downgrade to an older version of Svelte? Thanks for any tips, if you have them!

from vite-plugin-markdown.

kevinrenskers avatar kevinrenskers commented on May 26, 2024

I don't think this is related to Svelte at all, it's just SvelteKit that depends on Vite.
But yes, you can use the --force flag when installing or upgrading packages with NPM.

from vite-plugin-markdown.

arrowtype avatar arrowtype commented on May 26, 2024

Thanks for the quick reply! That’s a helpful tip! Seems like it will work, once I piece together the rest of this markdown import.

My current guess is that Svelte kit calls for vite 3.1.0-beta.1, and this plugin calls for vite 2.0.0 or 3.0.0... maybe? I could totally be misinterpreting the error message...

from vite-plugin-markdown.

hmsk avatar hmsk commented on May 26, 2024

Basically I'm intending to give proper versions to express which version this module would support, so * is aggressive despite I don't wanna support 0.x, 1.x

Anyways I think even * doesn't include beta versions of vite. So should wait for SvelteKit specifies non-prerelease vite while we use --force.
https://semver.npmjs.com/

from vite-plugin-markdown.

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.