Closed multivac61 closed 1 year ago
Encountering the same issue. Downgraded to 0.3.1 for the time being.
I believe this is only a problem in their repl and it's something they are fixing (have already fixed?)
@matthewp this is still a problem, but one with an easy solution! Just put up a PR for it here: https://github.com/matthewp/robot/pull/202 (cc. @multivac61 @juho)
Fixed by #202, thanks @erikrahm !
Writing down the issue described in this Twitter thread.
When using the newest version of robot in a SvelteKit project I get the following errors.
Here is a GitHub repo containing the code.
SvelteKit issues when importing
Importing
import { createMachine, invoke, reduce, state, interpret, transition } from 'robot3'
causes an internal error in SvelteKit (see REPL).Treating robot as a module with a default export, it works (see REPL):