Skip to content
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

el-carousel will report an error: cannot read properties of null (reading'isce') when it packages and starts nuxt3 project #44

Open
kood-2008 opened this issue Jul 24, 2022 · 0 comments

Comments

@kood-2008
Copy link

Environment

Operating System: windows
Node Version: v16.15.0
Nuxt Version: 3.0.0-rc.6
Package Manager: [email protected]
Builder:
Build Modules: "element-plus": "^2.2.10"

Reproduction

nuxt build / nuxt start

Describe the bug

When I use the el-carousel component, the error cannot read properties of null (reading'isCE') will be reported when I package and start the nuxt3 project, But as long as I add the tag, it will work normally

Logs

[Vue warn]: onMounted is called when there is no active component instance to be associated with. Lifecycle injec
tion APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lif
ecycle hooks before the first await statement.
[Vue warn]: onBeforeUnmount is called when there is no active component instance to be associated with. Lifecycle
 injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to regist
er lifecycle hooks before the first await statement.
[Vue warn]: provide() can only be used inside setup().
TypeError: Cannot read properties of null (reading 'isCE')
    at renderSlot (D:\StudyPlace\Test\nuxt3-app\.output\server\node_modules\@vue\runtime-core\dist\runtime-core.c
js.js:2937:34)
    at Proxy.<anonymous> (file:///D:/StudyPlace/Test/nuxt3-app/.output/server/node_modules/element-plus/es/compon
ents/carousel/src/carousel2.mjs:295:11)
    at renderComponentRoot (file:///D:/StudyPlace/Test/nuxt3-app/.output/server/chunks/renderer.mjs:2961:45)     
    at renderComponentSubTree (file:///D:/StudyPlace/Test/nuxt3-app/.output/server/chunks/renderer.mjs:10597:51) 
    at renderComponentVNode (file:///D:/StudyPlace/Test/nuxt3-app/.output/server/chunks/renderer.mjs:10526:16)   
    at Object.ssrRenderComponent (file:///D:/StudyPlace/Test/nuxt3-app/.output/server/chunks/renderer.mjs:10946:1
2)

My Reproduction Project

https://github.com/kood-2008/nuxt3-carousel/tree/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant