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

UnhandledPromiseRejectionWarning while generating a Ext JS CE application #155

Open
wemersonjanuario opened this issue Feb 12, 2019 · 2 comments

Comments

@wemersonjanuario
Copy link
Contributor

wemersonjanuario commented Feb 12, 2019

Hello. I have an error while creating a new app using Ext JS CE (myget)

npm login --registry=https://sencha.myget.org/F/community/npm/ --scope=@sencha
npm install -g @sencha/ext-gen
ext-gen app -a

i [ext]: ext-gen: C:\laragon\www\treinamento/my-app created
i [ext]: ext-gen: package.json created for my-app
i [ext]: ext-gen: webpack.config.js created for my-app
i [ext]: ext-gen: npm install -s started for my-app
i [ext]: ext-gen: npm install -s completed for my-app
(node:69972) UnhandledPromiseRejectionWarning: Error: Cannot find module 'C:\laragon\www\treinamento\my-app\node_modules@sencha\ext\package.json'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
at Function.Module._load (internal/modules/cjs/loader.js:497:25)
at Module.require (internal/modules/cjs/loader.js:626:17)
at require (internal/modules/cjs/helpers.js:20:18)
at stepCreate (C:\Users\wemer\AppData\Roaming\npm\node_modules@sencha\ext-gen\ext-gen.js:606:22)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:69972) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:69972) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@ardabeyazoglu
Copy link

Any update on this? Still giving the same error with 6.7

@ardabeyazoglu
Copy link

I solved it by patching ext-gen script with an extra line of code. Here are the details: https://stackoverflow.com/questions/54724299/unhandledpromiserejectionwarning-error-cannot-find-module-using-ext-gen/56316813#56316813

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