Skip to content

core is not a function #232

@RiggerJay

Description

@RiggerJay

I am getting following error and not sure how to fix

core is not a function
toHTML@http://localhost:3001/static/js/bundle.js:1070:52

Here is a bit from my package.json

"dependencies": {
"@bbob/core": "^3.0.2",
"@bbob/html": "^3.0.2",
"@bbob/preset-html5": "^3.0.2",
"react": "^18.2.0",

what I am importing

import bbobHTML from '@bbob/html'
import presetHTML5 from '@bbob/preset-html5'

How i am using it "roadEncounters.events" is a json array objects

            <ul>
                {roadEncounters.events.map(function (event) {
                    return (
                        <li key={event.roll}>
                            <h1>{event.name}</h1>
                            <p>{event.flavor}</p>
                            <hr />
                            <p>{bbobHTML(event.details, presetHTML5())}</p>
                        </li>
                    )
                })}
            </ul>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions