JulianMar / nuxt-bugsnag

Bugsnag module for nuxt.js
MIT License
49 stars 18 forks source link

Cannot find module 'nuxt-bugsnag-main/dist/module.cjs'. Please verify that the package.json has a valid "main" entry #44

Closed vedmant closed 1 year ago

vedmant commented 1 year ago

When I try to run Development, I have following error: Cannot find module '/Users/vedmant/Downloads/nuxt-bugsnag-main/dist/module.cjs'. Please verify that the package.json has a valid "main" entry

When I try to run npm run prepack, then I have this: error TS5083: Cannot read file '/Users/vedmant/Downloads/nuxt-bugsnag-main/playground/.nuxt/tsconfig.json'.

So looks like one requires another one to work, vicious circle.

JulianMar commented 1 year ago

Hey, can you try with the newest version? Thank you :)

vedmant commented 1 year ago

@JulianMar I downloaded from main branch.

JulianMar commented 1 year ago

yeah, i just pushed a new commit

vedmant commented 1 year ago

@JulianMar It's the same:

npm run dev

ERROR Cannot find module '/Users/vedmant/Downloads/nuxt-bugsnag-main 2/dist/module.cjs'. Please verify that the package.json has a valid "main" entry

JulianMar commented 1 year ago

run dev:prepare first

vedmant commented 1 year ago

@JulianMar Thanks, it works, it was not mentioned in docs.

JulianMar commented 1 year ago

Yeah I know, there's currently a issue between nuxt 3.4 and bugsnag - so the repo was in an unstable condition