-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt Module Runtime Error #1453
Comments
ADD: I do not think this is a bun issue or a bun workspaces related problem. I did fresh installs using bun as a build tool standalone outside of any workspace and same error after installing plugin. I then did a fresh nuxt3 app install using pnpm as a build tool and same errors. |
hey @corepay can you update to version Cheers |
Sure I will. FYI I found the backdoor to really what I wanted to accomplish was have an API attached to my nuxt project for rapid prototype via what looks to be built into nitro server already |
Yep the nitro one already existed for prototyping. This new nuxt one will be good for user facing docs as they are server side rendered now! |
It's early I just woke up and haven't had any coffee yet so maybe I'm still in bed dreaming but this is what I am getting: I am a tthe root of my nuxt project. Tried both
|
Remember I am in a bun workspace here. I did a fresh install outside of the workspace and everything installed correctly. I'll configure it now and see what I can do there |
Okay so the issue was with adding bun to an existing project? |
Bun isn't something you add - it is a build tool supported by Nuxt. The nuxt projects build fine until I add the 0.0.9 scalar plugin then can't get a clean build with |
hmm the first one looks like a possible issue with the install command since it can't find out which package manager you are using. The second one can be ignored for now, I'll figure out why the source maps aren't working |
I dont have time to test right now but just had a thought might be helpful. Try installing the module via |
What happens?
Install plugin via
npx nuxi module add @scalar/nuxt
on fresh install no problems adding module.bun run dev
[4:22:29 PM] ERROR Cannot start nuxt: Cannot find module '/home/runner/work/scalar/scalar/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/index.js'
Tried this on both a fresh full nuxt app app and in a layers app same result.
NOTICING...
In the layers and full app where I run the plugin installation the package.json gets the
"@scalar/nuxt": "^0.0.5",
as dependency BUT the"@scalar/api-reference": "^1.21.2",
is stuffed into the root bun workspace package.json. I tremoved@scalar/api-reference
and tried to add it to the layers/nuxt3 app in th workspace but got the above error and won't build at all now.What did you expect to happen?
Able to run nuxt app with or without module enabled in nuxt.config
How can we reproduce the issue?
create 2 folders:
layers
andapps
In the
layers
folder:npx nuxi init -t layer layerapp
and use bun as build tool optioncd to layerapp:
npx nuxi module add @scalar/nuxt
.bun run dev
You should get the same error message.
To test on a full nuxt app you'll need to delete the layerapp becuase you won't be able to install a new app now because a build error from the workspace layerapp scalar module is created.
In the
apps
folder:npx nuxi init nuxtapp
and use bun as build tool optioncd to nuxtapp:
npx nuxi module add @scalar/nuxt
.bun run dev
Swagger/OpenAPI Example
No response
The text was updated successfully, but these errors were encountered: