guess-js / guess

🔮 Libraries & tools for enabling Machine Learning driven user-experiences on the web
https://guess-js.github.io/
MIT License
7.06k stars 203 forks source link

TS2307: Cannot find module '@wessberg/ts-evaluator' or its corresponding type declarations. #512

Closed RA80533 closed 2 years ago

RA80533 commented 3 years ago

Running npm run build results in the error being emitted during Webpack compilation. \@wessberg/ts-evaluator is used in guess-parser but is not declared as a dependency anywhere in the project.

While both guess-ga and guess-webpack are structured in a manner that takes advantage of Lerna's workspace functionality, guess-parser is simply an extension of the project defined at the root directory of the repository. Its dependencies are sourced—intentionally or not—from those of the would-be parent project in the monorepo. In other words, an immediate fix would be to add \@wessberg/ts-evaluator as an immediate dependency of the guess package.

ERROR in /[…]/guess/packages/guess-parser/src/angular/routes.ts
./src/angular/routes.ts
[tsl] ERROR in /[…]/guess/packages/guess-parser/src/angular/routes.ts(2,26)
      TS2307: Cannot find module '@wessberg/ts-evaluator' or its corresponding type declarations.

EDIT: It appears that ts-evaluator is the non-deprecated version of \@wessberg/ts-evaluator. The imports of the latter should be updated to correspond with the change.

mgarcos commented 1 year ago

When will this be released?