Comments (7)
What's your nuxt.config.js look like? How are you installing nuxt/content? It's best to install it via yarn/npm so it's in your package.json.
from content.
yes i installed it via npm, the project didn't come with a "nuxt.config.js" file plus this is how my package.json file looks like :
from content.
Are you intending to help develop nuxt/content, or are you trying to build a project in nuxt that uses nuxt/content? If it's the former, the devs are the ones who would be able to help you.
If it's the latter, you're going about this the wrong way. Apologies if you're not new to this and I'm misreading your issue. To start a nuxt project with all the correct default folders, use the create-nuxt-app
scaffolding tool (instructions here), then install nuxt/content and add it to your NuxtJS project via the instructions here.
from content.
my issue is that i wante dto clone this project : https://github.com/nuxt/content and run it, after i installed evrything with npm i ran : "npm run dev" and that error popped up,th eproject that already exists and that i cloned doesn't come with a nuxt.config file and this error keeps popping up :
@nuxt/[email protected] dev C:\Users\ThinkPad\Desktop\Main\Job Trainer\nuxtContent\content
nuxt example
FATAL Both nuxt and nuxt-edge dependencies are installed! This is unsupported, please choose one and remove the other one from dependencies. 15:53:49
at Object.run (node_modules@nuxt\cli-edge\dist\cli-index.js:3025:11)
at Object. (node_modules\nuxt-edge\bin\nuxt.js:4:31)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @nuxt/[email protected] dev: nuxt example
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @nuxt/[email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
from content.
@aws95 The project you cloned is the source code of the content module, you won't be able to use it this way. As mentioned @thely, you should try to create a Nuxt.js project and install the module following the documentation.
Regarding the error you got, the content module uses nuxt-edge
as a dev dependencies to run the example. You can't have nuxt
and nuxt-edge
installed at the same time. Did you ran a npm install nuxt
beforehand?
from content.
yes i did, i installed everything using npm
from content.
@aws95 If you installed nuxt
locally, you have to deinstall it (npm uninstall nuxt
) cause the library already installed nuxt-edge
which is the preview version of nuxt
.
from content.
Related Issues (20)
- Prerender doesn't work anymore (2.13.0 related) HOT 12
- Styles in official documentation is not correct HOT 3
- Dynamic pages with query in layout can fail silently, causing hard-to-debug errors during generate HOT 11
- No queryContent from yml files when compatibility version 4 HOT 2
- Upgrade to @nuxt/content 2.13.1 breaks static page generation HOT 7
- Highlight content (shiki) not working HOT 6
- @nuxt/content 2.13.1 -> ERROR [unhandledRejection] connect ECONNREFUSED 127.0.0.1:49363 HOT 23
- docs(bugs): content.nuxt.com is 404 error HOT 2
- respectPathCase in defineTransformer() HOT 1
- Experimental Search: splitPageIntoSections fails if file does not have description
- [Landing] - Design review
- want some magic ? An image is switched with another one on client side HOT 2
- Add Default Language Field to Nuxt Config for Shiki Code Highlighting HOT 1
- bug: home page layout shift
- Can't Access Nuxt Studio Data in Frontend of Application HOT 1
- Error on Nuxt Content for Static Site Generation : Document not found, overwrite this content with #not-found slot in <ContentDoc>. HOT 1
- When I set useHead in app.vue, the webpage title does not change after leaving the content-related page
- bug(search): unicode characters display wrong on indexed mode HOT 1
- Unwanted class added on anchor links when target="_self"
- Image path changed in when linking images in markdown content
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 content.