Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use CLI without declaring devDependency #50

Closed
Elderberg opened this issue Jun 30, 2021 · 1 comment
Closed

Cant use CLI without declaring devDependency #50

Elderberg opened this issue Jun 30, 2021 · 1 comment
Assignees

Comments

@Elderberg
Copy link

As of version 5.2.1 the pre-compilation of a simple .riot file with this command worked fine:

riot .

In 5.3.0 I have to declare @riotjs/cli as a devDependency despite not using any pre-processors at all, else it will throw a error about missing babel dependencies:

A critical error occurred
Trace: Error: Cannot find module '@babel/preset-typescript'
Require stack:
- C:\Users\xyz\AppData\Roaming\npm\node_modules\@riotjs\cli\node_modules\@babel\core\lib\config\files\plugins.js
- C:\Users\xyz\AppData\Roaming\npm\node_modules\@riotjs\cli\node_modules\@babel\core\lib\config\files\index.js
- C:\Users\xyz\AppData\Roaming\npm\node_modules\@riotjs\cli\node_modules\@babel\core\lib\index.js
- C:\Users\xyz\AppData\Roaming\npm\node_modules\@riotjs\cli\node_modules\@rollup\plugin-babel\dist\index.js
- C:\Users\xyz\AppData\Roaming\npm\node_modules\@riotjs\cli\cli.js

...

I am not using riot.js in a node project and @riotjs/cli was installed via npm globally.

Is there any plan to include these dependencies into the cli directly or is this the devDependency a requirement now?

@GianlucaGuarini
Copy link
Member

GianlucaGuarini commented Jul 14, 2021

Fixed in v6.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants