-
Notifications
You must be signed in to change notification settings - Fork 11
nuxt generate gives error Error: Cannot find module 'dist/_press/sources/test'
#62
Comments
It seems that the blog mode of nuxtpress is instantiated, which expect every md file to list a publishing date. If you only need to run md pages you can add nuxtpress to your modules as follows to make sure the blog mode is not loaded:
Please note that the term |
I have changed my nuxt.config.js to load the '@nuxt/press' module with 'common' as you mentioned but it still showed warnings about my .md files without valid dates. I did go ahead and add a valid date to the .md files and deleted some .md files that I didn't need. The outcome remains the same though sadly. The output is a little cleaner (less warnings) but it still errors as follows.
When I navigate to |
@pimlie Do you have any advice? |
@nskoretz Sorry, i dont have any clue. I really want to release the next beta this weekend at the latest, that will probably solve the issue and if not its easier to debug ;) |
Alright, sounds good pimlie. I await the release. |
I am trying to whip up a website that contains content written in Markdown and I decided to use nuxt/press to show it. It has been working fine with .md files in pages when using
npm run dev
, barring some warnings.Although when running
npm run generate
I get the following error trace:This is similar to Issue #53 where
nuxt generate
"Cannot find a module".Further Information
The contents of my package.json, I only have nuxt, nuxt/press, and nuxt/press' peer dependencies installed.
And from nuxt.config.js, the only modules that nuxt is using are the following...
Any thoughts on why it functions correctly on the dev server and not with
nuxt generate
? The other thread while encountering a similar problem didn't have a solution.If more information is required, please feel free to ask. This is my first Bug Issue, so I'm not too sure what is required.
Thanks,
The text was updated successfully, but these errors were encountered: