Skip to content

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

@JiLiZART

Description

@JiLiZART

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?

Metadata

Metadata

Assignees

Labels

P0Critical IssuebugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions