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

Error after upgrading to latest version in React: presetHTML5.extend is not a function #214

Open
JiLiZART opened this issue Jan 8, 2024 Discussed in #213 · 4 comments
Assignees
Labels
bug Something isn't working P0 Critical Issue

Comments

@JiLiZART
Copy link
Owner

JiLiZART commented Jan 8, 2024

Discussed in #213

Originally posted by bmt2604 January 5, 2024
Hello,

I upgraded the package version of @bbob/react and @bbob/preset-react from 2.9.0 to 3.0.2 in my React application and started seeing this error: TypeError: presetHTML5.extend is not a function.

I was previously importing from the package like so:

import BBCode from '@bbob/react';
import presetReact from '@bbob/preset-react';

but have found that since upgrading, the only way I've found to fix the error is to include /lib in the import path:

import BBCode from '@bbob/react/lib';
import presetReact from '@bbob/preset-react/lib';

Is this an expected change to have to make when using the latest version?

@JiLiZART JiLiZART added bug Something isn't working P0 Critical Issue labels Jan 8, 2024
@JiLiZART JiLiZART self-assigned this Jan 8, 2024
@petrvecera
Copy link

petrvecera commented Apr 6, 2024

Same issue, looking forward to the fix 👍

@BadiiBoukalane
Copy link

Same Issue

@JiLiZART
Copy link
Owner Author

@petrvecera @BadiiBoukalane can you please share your vite/webpack configs or what build system you use?
If you use type: module in package.json so currently this package don't support esm format

@petrvecera
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Critical Issue
Projects
None yet
Development

No branches or pull requests

3 participants