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

startApp #749

Open
iomari opened this issue Mar 24, 2022 · 3 comments
Open

startApp #749

iomari opened this issue Mar 24, 2022 · 3 comments

Comments

@iomari
Copy link

iomari commented Mar 24, 2022

Greetings,
After installing node and npm, I get the following error when I try to start the app:

> sudo yarn startApp
                                                                                                                                                                                                               
yarn run v1.22.18
error Command "startApp" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I'm running this from the generatedata folder.
I tried as a normal user and also as root with the same result.

@iomari
Copy link
Author

iomari commented Mar 24, 2022

I've resolve the startapp issue but uninstalling and reinstalling nodejs.
Now when I run: yarn startApp. I get:

> sudo yarn startApp                                                                                                                                                                                                                
yarn run v1.22.18                                                                                                                                                                                                                      
$ yarn prod && COMPOSE_HTTP_TIMEOUT=150 docker-compose -f docker-compose-prod.yml up --build                                                                                                                                           
$ cd client && grunt && yarn build && yarn webpackProd                                                                                                                                                                                 
Running "cssmin:target" (cssmin) task                                                                                                                                                                                                  
>> 1 file created. 71.8 kB → 65.9 kB                                                                                                                                                                                                   
                                                                                                                                                                                                                                       
Running "copy:main" (copy) task                                                                                                                                                                                                        
Copied 12 files

Running "copy:codeMirrorModes" (copy) task
Created 122 directories, copied 125 files

Running "i18n" task

Running "shell:buildWebWorker0" (shell) task

src/core/generator/dataTypes.worker.ts → dist/workers/dataTypes.worker.js...
created dist/workers/dataTypes.worker.js in 12.1s

Running "shell:buildWebWorker1" (shell) task

src/core/generator/exportTypes.worker.ts → dist/workers/exportTypes.worker.js...
created dist/workers/exportTypes.worker.js in 12.2s

Running "shell:buildWebWorker2" (shell) task

src/utils/workerUtils.ts → dist/workers/workerUtils.js...
[!] (plugin rpt2) Error: /home/iomari/opt/generatedata-4.0.14/client/src/utils/langUtils.ts(2,17): semantic error TS2307: Cannot find module '../../_env' or its corresponding type declarations.
src/utils/langUtils.ts
Error: /home/iomari/opt/generatedata-4.0.14/client/src/utils/langUtils.ts(2,17): semantic error TS2307: Cannot find module '../../_env' or its corresponding type declarations.
    at error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:158:30)
    at throwPluginError (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:21784:12)
    at Object.error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:22488:20)
    at Object.error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:21960:38)
    at RollupContext.error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/rollupcontext.ts:37:18)
    at /home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:41:11
    at arrayEach (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:516:11)
    at Function._.each [as forEach] (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:9368:14)
    at printDiagnostics (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:9:2)
    at Object.transform (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/index.ts:242:5)

Warning: Command failed: npx rollup -c --config-src=src/utils/workerUtils.ts --config-target=dist/workers/workerUtils.js
Warning: Command failed: npx rollup -c --config-src=src/utils/workerUtils.ts --config-target=dist/workers/workerUtils.js

src/utils/workerUtils.ts → dist/workers/workerUtils.js...
[!] (plugin rpt2) Error: /home/iomari/opt/generatedata-4.0.14/client/src/utils/langUtils.ts(2,17): semantic error TS2307: Cannot find module '../../_env' or its corresponding type declarations.
src/utils/langUtils.ts
Error: /home/iomari/opt/generatedata-4.0.14/client/src/utils/langUtils.ts(2,17): semantic error TS2307: Cannot find module '../../_env' or its corresponding type declarations.
    at error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:158:30)
    at throwPluginError (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:21784:12)
    at Object.error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:22488:20)
    at Object.error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup/dist/shared/rollup.js:21960:38)
    at RollupContext.error (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/rollupcontext.ts:37:18)
    at /home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:41:11
    at arrayEach (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:516:11)
    at Function._.each [as forEach] (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:9368:14)
    at printDiagnostics (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:9:2)
    at Object.transform (/home/iomari/opt/generatedata-4.0.14/node_modules/rollup-plugin-typescript2/src/index.ts:242:5)

 Use --force to continue.

Aborted due to warnings.
error Command failed with exit code 6.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 6.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@benkeen
Copy link
Owner

benkeen commented Apr 29, 2022

Sorry for not responding sooner, @iomari - I was out of the country and had a break from open source for a bit.

Hmm... what version of node are you running? (do an nvm install in the generatedata folder if you have NVM installed). So far I haven't seen any problems here. As long as you make a copy of the _env.default file over to ._env as per https://benkeen.github.io/generatedata/userdoc/installation/settings it seems to work okay. Other than the node version I can't think what it could be.

@Theone12
Copy link

Greetings, After installing node and npm, I get the following error when I try to start the app:

> sudo yarn startApp
                                                                                                                                                                                                               
yarn run v1.22.18
error Command "startApp" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I'm running this from the generatedata folder. I tried as a normal user and also as root with the same result.

i meet this issue too. how to resolve it ?

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

3 participants