benkeen / generatedata

A powerful, feature-rich, random test data generator.
https://generatedata.com
2.23k stars 611 forks source link

startApp #749

Open iomari opened 2 years ago

iomari commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 8 months ago

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 ?