You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not quite sure how your setup looks like, but you most likely would need a precompilation step, like using Webpack. If that is the case I don't see a reason why it shouldn't work.
Hey @alekop . Please try the typescript branch, which will be the base for the next release. That should work, and if it does not, please tell me, what error you get, so we can resolve that together.
i tried import the module into browser by
webpack4
as belowimport { BehaviorTree, Sequence, Task, SUCCESS, FAILURE } from 'behaviortree'
once i want to check by
console.log(BehaviorTree)
, console showsundefined
.when i tried this way
import { BehaviorTree, Sequence, Task, SUCCESS, FAILURE } from '../node_modules/behaviortree/dist/index.node'
it can work.
but when i tried
import { BehaviorTree, Sequence, Task, SUCCESS, FAILURE } from '../node_modules/behaviortree/dist/index'
it doesn't work.
it seems that this package can only be used in Node, but not applied for web.
The text was updated successfully, but these errors were encountered: