`Object.defineProperty called on non-object`
See original GitHub issueEnvironment
- Operating System:
Linux
- Node Version:
v16.15.1
- Nuxt Version:
3.0.0-rc.4
- Package Manager:
pnpm@7.2.1
- Builder:
vite
- User Config:
-
- Runtime Modules:
-
- Build Modules:
-
Reproduction
create a fresh project and open it on a browser
pnpx nuxt@rc init nuxt-app
cd nuxt-app/
pnpm install --shamefully-hoist
pnpm dev -o
and open http://localhost:3000/
Describe the bug
Nuxt CLI v3.0.0-rc.4
> Local: http://localhost:3000/
> Network: http://192.168.32.128:3000/
> Network: http://172.17.0.1:3000/
ℹ Vite client warmed up in 746ms
ℹ Vite server warmed up in 153ms
✔ Vite server built in 1223ms
✔ Nitro built in 298 ms
[nuxt] [request error] Object.defineProperty called on non-object
at Function.defineProperty (<anonymous>)
at $id_a7972da4 (./.nuxt/dist/server/server.mjs:129:8)
at __instantiateModule__ (./.nuxt/dist/server/server.mjs:20116:9)
at __ssrLoadModule__ (./.nuxt/dist/server/server.mjs:20054:25)
at ssrImport (./.nuxt/dist/server/server.mjs:20079:13)
at $id_fe0c645f (./.nuxt/dist/server/server.mjs:17:37)
at __instantiateModule__ (./.nuxt/dist/server/server.mjs:20116:9)
at __ssrLoadModule__ (./.nuxt/dist/server/server.mjs:20054:25)
at ./.nuxt/dist/server/server.mjs:20131:22
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
the offending line is
Object.defineProperty(exports, '__esModule', { value: true });
Additional context
skeleton project pushed to https://gitlab.com/mnemoc/nuxt3-pnpm-issue-5516
Logs
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
TypeError: Object.defineProperty called on non-object JQUERY
I have this error in Jquery when I try to each an array of HTML elements and handle onclick of that element. Object.keys(collapsibles).forEach( ......
Read more >Uncaught TypeError: Object.defineProperty called on non ...
bug report Using Parcel 2.0.0-beta.1, react relay and yarn workspaces, produces a non-working build. Using the option no-scope-hoist fixes ...
Read more >Object.defineProperty() - JavaScript - MDN Web Docs
defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
Read more >jquery error - WordPress.org
i am getting this error after updating to WordPress 5.6 (latest version):. Uncaught TypeError: Object.defineProperty called on non-object in jquery.min.js:2.
Read more >TypeError: Object.defineProperty called on non-object JQUERY
I have this error in Jquery when I try to each an array of HTML elements and handle onclick of that element. Object.keys(collapsibles).forEach(function...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this should no longer be the case as we now use
vite-node
as the default devBundler. If you are still experiencing this, please feel free to provide a reproduction and I will reopen.Im also getting this with transpiling
@ant-design/icons-vue
My module
JS output where error occures