🐛 Fix nextjs package broken dynamic import
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/js",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"description": "Javascript library to display typebots on your website",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/nextjs",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"description": "Convenient library to display typebots on your Next.js website",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
@ -17,7 +17,7 @@ const indexConfig = {
|
||||
dir: './dist',
|
||||
format: 'es',
|
||||
},
|
||||
external: ['next/dynamic', 'react', 'react/jsx-runtime'],
|
||||
external: ['next/dynamic.js', 'react', 'react/jsx-runtime'],
|
||||
watch: {
|
||||
clearScreen: false,
|
||||
},
|
||||
|
@ -3,7 +3,7 @@ import type {
|
||||
PopupProps,
|
||||
BubbleProps,
|
||||
} from '@typebot.io/js/dist/index'
|
||||
import dynamic from 'next/dynamic'
|
||||
import dynamic from 'next/dynamic.js'
|
||||
|
||||
export const Standard: React.ComponentType<
|
||||
BotProps & {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/react",
|
||||
"version": "0.3.5",
|
||||
"version": "0.3.6",
|
||||
"description": "Convenient library to display typebots on your React app",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
Reference in New Issue
Block a user