crisp-im / crisp-sdk-web

:package: Include the Crisp chat widget from using frameworks such as React, VueJS, Angular...
https://www.npmjs.com/package/crisp-sdk-web
MIT License
40 stars 13 forks source link

The operand of a 'delete' operator must be optional. #22

Closed dev-smart-ui closed 6 months ago

dev-smart-ui commented 1 year ago

Hi my build on vercel does not work ./node_modules/crisp-sdk-web/src/index.ts:209:16 Type error: The operand of a 'delete' operator must be optional. window.CRISP_TOKEN_ID = tokenId; } else { delete window.CRISP_TOKEN_ID; ^ } }

./node_modules/crisp-sdk-web/src/index.ts:4:3 Type error: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.

2 | 3 | export {

4 | AnimationMessage, | ^ 5 | AudioMessage, 6 | FileMessage, 7 | PickerMessage,

  • info Linting and checking validity of types .

next js 13 , typescript 4.9.3 , node js 18 npm run build usage import { Crisp } from "crisp-sdk-web";

baptistejamin commented 1 year ago

You should skipLibCheck in your ts config Sent from my iPhoneOn 22 Aug 2023, at 10:33, Smart-UI @.***> wrote: Hi my build on vercel does not work ./node_modules/crisp-sdk-web/src/index.ts:209:16 Type error: The operand of a 'delete' operator must be optional. window.CRISP_TOKEN_ID = tokenId; } else { delete window.CRISP_TOKEN_ID; ^ } } next js 13 , typescript 4.9.3 , node js 18 npm run build usage import dynamic from "next/dynamic"; import React from "react"; const Crisp = dynamic( () => import("components/Crisp").then((mod) => mod.CrispChat), {ssr: false} ); export const ChatCrisp = () => { return }

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>