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

Type Errors #715

Open
kevinvangelder opened this issue Mar 5, 2020 · 5 comments
Open

Type Errors #715

kevinvangelder opened this issue Mar 5, 2020 · 5 comments

Comments

@kevinvangelder
Copy link
Member

Using gluegun 4.2.0 I get the following errors trying to build my project:

node_modules/gluegun/build/types/toolbox/filesystem-types.d.ts:40:36 - error TS2694: Namespace 'path' has no exported member 'resolve'.
40     resolve: typeof import('path').resolve;
                                      ~~~~~~~
node_modules/gluegun/build/types/toolbox/prompt-enquirer-types.d.ts:70:34 - error TS2689: Cannot extend an interface 'NodeJS.EventEmitter'. Did you mean 'implements'?
70 declare class BasePrompt extends NodeJS.EventEmitter {
                                    ~~~~~~
node_modules/gluegun/build/types/toolbox/prompt-enquirer-types.d.ts:75:44 - error TS2689: Cannot extend an interface 'NodeJS.EventEmitter'. Did you mean 'implements'?
75 declare class Enquirer<T = object> extends NodeJS.EventEmitter {
                                              ~~~~~~
@eugeneduvenage
Copy link

I ran across this same issue recently, it turned out to be a simple typings mismatch, I was running the lts node series v12.16.1 but I had installed @node/types from the 13.x.x series. I updated my package.json to specify version 12.12.30 of @types/node and the problem went away.

@jamonholmgren
Copy link
Member

Thanks @eugeneduvenage , just ran into this myself.

@kyleect
Copy link

kyleect commented Jan 1, 2021

I'm currently running in to this same issue. Versions:

  • gluegun 4.5.0
  • node 14.15.3
  • @types/node 14.14.17

I tried using node 14.14.0 thinking there was a types version mismatch but same error.

@mmNalaka
Copy link

@kyleect I had the same issue when using "@types/node": "^14.x.x". Changing the @types/node version to "@types/node": "^12.7.11" resolved the issue.

@vincent-thomas
Copy link

I also have a typeerror but i dont know how to solve it:

    throw up;
    ^

TypeError: _b.apply is not a function
    at C:\Coding_and_Tools\v-thomas\passwrdmngr-new\build\extensions\mainMenu.js:53:47
    at step (C:\Coding_and_Tools\v-thomas\passwrdmngr-new\build\extensions\mainMenu.js:33:23)
    at Object.next (C:\Coding_and_Tools\v-thomas\passwrdmngr-new\build\extensions\mainMenu.js:14:53)
    at fulfilled (C:\Coding_and_Tools\v-thomas\passwrdmngr-new\build\extensions\mainMenu.js:5:58)```
Im using prisma but i know thats not the problem. I think its to do with gluegun. Can anybody help me?

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

6 participants