You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin works perfectly on nextjs v14.1.1 but once you install nextjs v14.1.2 everything breaks.
Nextjs complains that I need to use the 'use client' directive for the external component library I added to the plugin config.
Any fixes?
I did not reproduce this issue in my repo used nextjsv14.1.4. Please provide your code to better reproduce the issue.
In your provided repo you don't have any swcPlugins defined.
The plugin works perfectly on nextjs v14.1.1 but once you install nextjs v14.1.2 everything breaks.
Nextjs complains that I need to use the 'use client' directive for the external component library I added to the plugin config.
Any fixes?
I did not reproduce this issue in my repo used nextjsv14.1.4. Please provide your code to better reproduce the issue.
In your provided repo you don't have any swcPlugins defined.
This is how we use the plugin:
I can start success in my repo with antd. I think it's probably an issue with the directory structure of your component library. The export directory structure of antd is as follows:
I can't find @spot/ui-components in npm. Please provide more information about it. And you can provide the error logs.
Hey, this no longer works with next 14.2.0, any chance of a fix for this?
: failed to run Wasm plugin transform. Please ensure the version of swc_core used by the plugin is compatible with the host runtime.
Hey, this no longer works with next 14.2.0, any chance of a fix for this? : failed to run Wasm plugin transform. Please ensure the version of swc_core used by the plugin is compatible with the host runtime.
Hey, this no longer works with next 14.2.0, any chance of a fix for this?嘿,这不再适用于下一个 14.2.0,有修复这个问题的机会吗? : failed to run Wasm plugin transform. Please ensure the version of swc_core used by the plugin is compatible with the host runtime.:无法运行 Wasm 插件转换。请确保插件使用的 swc_core 版本与主机运行时兼容。
I'm trying to up our Nextjs version from 14.1.1 to to lastest (14.2.6).
Steps I took:
Install Nextjs version 14.2.6
Install use-client version 1.2.0
Applied following config:
NOTE: all the @spot packages are private internal repositories. We create our own component library. This component library is build using React and Vite where all components are exported in an index.js file
Below is what it looks like:
Run the Nextjs application
Following error occurs:
Where does it go wrong?
Did we implement or use this package wrong?
Did we implement or expose our UI library the wrong way?
Please help, we can't seem to find the source of the problem.
I'm trying to up our Nextjs version from 14.1.1 to to lastest (14.2.6).
Steps I took:
Install Nextjs version 14.2.6
Install use-client version 1.2.0
Applied following config:
NOTE: all the @spot packages are private internal repositories. We create our own component library. This component library is build using React and Vite where all components are exported in an index.js file
Below is what it looks like:
Run the Nextjs application
Following error occurs:
Where does it go wrong? Did we implement or use this package wrong? Did we implement or expose our UI library the wrong way?
Please help, we can't seem to find the source of the problem.
Thanks!
Please provide the [local]/users page code and this file code.
I'm trying to up our Nextjs version from 14.1.1 to to lastest (14.2.6).
Steps I took:
Install Nextjs version 14.2.6
Install use-client version 1.2.0
Applied following config:
NOTE: all the @spot packages are private internal repositories. We create our own component library. This component library is build using React and Vite where all components are exported in an index.js file
Below is what it looks like:
Run the Nextjs application
Following error occurs:
Where does it go wrong? Did we implement or use this package wrong? Did we implement or expose our UI library the wrong way?
Please help, we can't seem to find the source of the problem.
Thanks!
Please provide the [local]/users page code and this file code.
add "@lib/" to config like this include: ["@lib/", ...];
you can change change the import way from @spot/ui-components, for example change import { AgGrid } from '@spot/ui-components' to import AgGrid from '@spot/ui-components/your-component-path'.
add "@lib/" to config like this include: ["@lib/", ...];
you can change change the import way from @spot/ui-components, for example change import { AgGrid } from '@spot/ui-components' to import AgGrid from '@spot/ui-components/your-component-path'.
Activity
coder-xiaotian commentedon Mar 26, 2024
I did not reproduce this issue in my repo used nextjsv14.1.4. Please provide your code to better reproduce the issue.
arnoBruynseels commentedon Mar 28, 2024
In your provided repo you don't have any swcPlugins defined.
This is how we use the plugin:
coder-xiaotian commentedon Mar 28, 2024
I can start success in my repo with antd. I think it's probably an issue with the directory structure of your component library. The export directory structure of antd is as follows:

I can't find @spot/ui-components in npm. Please provide more information about it. And you can provide the error logs.
tjones4701 commentedon Apr 15, 2024
Hey, this no longer works with next 14.2.0, any chance of a fix for this?
: failed to run Wasm plugin transform. Please ensure the version of
swc_core
used by the plugin is compatible with the host runtime.coder-xiaotian commentedon Apr 16, 2024
I get it. What is your OS version useing.
coder-xiaotian commentedon Apr 16, 2024
I fixed it. You can update
use-client
to 1.2.0.arnoBruynseels commentedon Aug 23, 2024
Hi it's me again.
I'm trying to up our Nextjs version from 14.1.1 to to lastest (14.2.6).
Steps I took:
NOTE: all the @spot packages are private internal repositories. We create our own component library. This component library is build using React and Vite where all components are exported in an index.js file
Below is what it looks like:
Where does it go wrong?
Did we implement or use this package wrong?
Did we implement or expose our UI library the wrong way?
Please help, we can't seem to find the source of the problem.
Thanks!
coder-xiaotian commentedon Aug 25, 2024
Please provide the [local]/users page code and this file code.

arnoBruynseels commentedon Aug 26, 2024
``> > Hi it's me again.
[local]/users page code:
UserPageContent code:
TimestampRefreshButton code:
Transpiled & Compiled:
Actual Component code:
coder-xiaotian commentedon Aug 27, 2024
@arnoBruynseels You can try these two ways.
include: ["@lib/", ...]
;arnoBruynseels commentedon Aug 28, 2024
Thanks, I will try this and keep you posted!