Comments (9)
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.
+1
from vite-plugin-markdown.
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.
Try https://github.com/hmsk/vite-plugin-markdown/releases/tag/v2.1.0
from vite-plugin-markdown.
Thanks!
from vite-plugin-markdown.
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.
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.
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.
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)
- npm ERR! ERESOLVE unable to resolve dependency tree (Svelte 3.44.0) HOT 2
- [FR] Additional output modes
- use vite3+vue3,not support require('vite-plugin-markdown') HOT 2
- Handle relative image paths HOT 2
- not support table render HOT 1
- Using template string in md code block caused error !
- Add plain string mode support HOT 2
- Need to support Vite 4 HOT 2
- No html mode HOT 1
- `Mode.MARKDOWN` does not exist on type `Mode` HOT 2
- [vite] mdPlugin is not a function HOT 2
- Can I use it without react or vue? HOT 2
- npm i vite-plugin-markdown error HOT 1
- 异常:TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.invokeGetter (<anonymous>:3:28)
- ReferenceError: vueRender is not defined HOT 1
- there is no type : Mode.RAW HOT 1
- @babel/preset-react should be in package.json dependencies HOT 4
- Table not works in react
- Support for Vite 5 HOT 1
- How to use in Vitepress? thanks
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 vite-plugin-markdown.