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
Describe the bug
I am unable to start up ladle due to an issue around an import statement in the cli.js file.
Reproduction
mkdir my-ladle
cd my-ladle
pnpm init
pnpm add @ladle/react react react-dom
mkdir src
echo "export const World = () => <p>Hey</p>;" > src/hello.stories.tsx
pnpm ladle serve
...
<stuff>/my-ladle/node_modules/.pnpm/@ladle+react@1.1.2_biqbaboplfbrettd7655fr4n2y/node_modules/@ladle/react/lib/cli/cli.js:2
import { program } from "commander";
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Module._compile (internal/modules/cjs/loader.js:892:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
at Module.load (internal/modules/cjs/loader.js:812:32)
at Function.Module._load (internal/modules/cjs/loader.js:724:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
at internal/main/run_main_module.js:17:11
Describe the bug
I am unable to start up ladle due to an issue around an import statement in the cli.js file.
Reproduction
More about troubleshooting.
Environment
The text was updated successfully, but these errors were encountered: