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

Uncaught TypeError: styled.div is not a function #276

Open
tejasvinu opened this issue Feb 28, 2024 · 2 comments
Open

Uncaught TypeError: styled.div is not a function #276

tejasvinu opened this issue Feb 28, 2024 · 2 comments

Comments

@tejasvinu
Copy link

Uncaught TypeError: styled.div is not a function
js Dante.js:1117
js Dante.js:2
js Dante.js:5
__require chunk-YJNMHHGL.js:11
dante3.js:43626
Dante.js:1117:31
js Dante.js:1117
js Dante.js:2
js Dante.js:5
__require chunk-YJNMHHGL.js:11
dante3.js:43626
Error after using danteditor in react app.

@luisaraujoc
Copy link

I'm having the same problem

VS Code displays the following message regarding 'import { Dante } from 'dante3':
image

And Dev mode Browser:
image

I don't understand how I can use VS Code's recommendation about dante3.d.ts to my advantage, I know I have to mess with ts.config.json. However, I'm using React built by Vite using JS and not TypeScript

@jersoncarin
Copy link

I encountered this error, I fixed it by importing the esm import DanteEditor from "dante3/package/esm"

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

3 participants