steveruizok / perfect-freehand

Draw perfect pressure-sensitive freehand lines.

Home Page:https://perfectfreehand.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] "yarn start" fails to start

yaojingguo opened this issue Β· comments

$ node --version
v18.19.0
$ yarn --version
1.22.21
$ yarn start
yarn run v1.22.21
$ lerna run start --stream --parallel
lerna notice cli v3.22.1
lerna info Executing command in 2 packages: "yarn run start"
dev: $ node ./esbuild.config.mjs --dev tsc --watch
perfect-freehand: $ node scripts/dev & tsc --watch --incremental --emitDeclarationOnly --declarationMap --outDir dist/types
dev:
dev: Serving πŸ›
dev:
dev: Local β†’ http://localhost:5420
dev:
dev: Network β†’ http://10.0.0.3:5420
dev:
dev:  > src/state/shapes/draw.tsx:14:26: error: Could not resolve "perfect-freehand" (mark it as external to exclude it from the bundle)
dev:     14 β”‚ import { getStroke } from 'perfect-freehand'
dev:        β•΅                           ~~~~~~~~~~~~~~~~~~
dev:    ../../node_modules/perfect-freehand/package.json:28:16: note: The module "./dist/esm/index.mjs" was not found on the file system
dev:     28 β”‚       "import": "./dist/esm/index.mjs"
dev:        β•΅                 ~~~~~~~~~~~~~~~~~~~~~~
perfect-freehand:
9:35:41 PM - Starting compilation in watch mode...
dev: error Command failed with exit code 1.
dev: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run start exited 1 in 'dev'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

commit 315d598