Closed jojco closed 1 year ago
There is something strange happening in Rollup or one of the plugins, causing the source to become transformed into "false && onMounted(cb)"
More specifically this line in rollup.js throws the error, I am no expert but will try to dig further.
any updates?
In my case I had
For my case, I resolved it by adding transpile: ['troisjs']
into my nuxt.config.ts
build options as specified in this doc. I had forgotten it was a module!
For my case, I resolved it by adding
transpile: ['troisjs']
into mynuxt.config.ts
build options as specified in this doc. I had forgotten it was a module!
I already had set this before, but yes It can have same result if you don't have this settings.
In my case I had component in the parent component and I thought child component will inherit from it, but It looks like I was wrong. I take directly before in the one component (or .client postfix on component), after that everything works fine. My fault.
Could you expand on this? I'm having this issue as well and I'm having trouble following your comment here.
In my case I had component in the parent component and I thought child component will inherit from it, but It looks like I was wrong. I take directly before in the one component (or .client postfix on component), after that everything works fine. My fault.
Could you expand on this? I'm having this issue as well and I'm having trouble following your comment here.
I had Nuxt set on hybrid rendering ssr: true. And I had
In my case I had component in the parent component and I thought child component will inherit from it, but It looks like I was wrong. I take directly before in the one component (or .client postfix on component), after that everything works fine. My fault.
Could you expand on this? I'm having this issue as well and I'm having trouble following your comment here.
I had Nuxt set on hybrid rendering ssr: true. And I had component in separate .vue file where was child component renderer.vue inside them I had troisjs component. This was wrong ,after I put directly inside renderer.vue before , everything works fine. (Remember you must have build: { transpile:['troijs'] } as well.)
So you put
So I should NOT do something like
<ClientOnly>
<ComponentWhichUsesTroisJSRenderer/>
</ClientOnly>
From what I'm seeing, no. You want everything troisjs related client side.
Sidenote, I switched to another website framework; I couldn't resolve this issue for about 3 weeks.
Which one?
Not Nuxt and not Vue; I'm not using troisjs either.
In my case I had component in the parent component and I thought child component will inherit from it, but It looks like I was wrong. I take directly before in the one component (or .client postfix on component), after that everything works fine. My fault.
Could you expand on this? I'm having this issue as well and I'm having trouble following your comment here.
I had Nuxt set on hybrid rendering ssr: true. And I had component in separate .vue file where was child component renderer.vue inside them I had troisjs component. This was wrong ,after I put directly inside renderer.vue before , everything works fine. (Remember you must have build: { transpile:['troijs'] } as well.)
So you put html tag inside .vue component file which used Trois.js renderer?
So I should NOT do something like
<ClientOnly> <ComponentWhichUsesTroisJSRenderer/> </ClientOnly>
Yes exactly. You should use something like
<ClientOnly>
<Renderer>
<Scene/>
...
</Renderer>
</ClientOnly>
And remember as well transpile it.
Sorry for the late reply, I'm already building similar library from the scratch. Do you solve it ?
Still having this issue -- any updates on this? I have ssr: false
and transpile: ['troisjs', 'threejs']
set.
Nevermind, just resolved it by adding the .client
suffix to the component containing troisjs.
Hi, I have problem during building process on Nuxt3. Can somebody help me?
my package.json