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

Requires 'type' module, which is 7 years old and can not be loaded. #10

Open
mikemaccana opened this issue Feb 21, 2019 · 3 comments
Open

Comments

@mikemaccana
Copy link

mikemaccana commented Feb 21, 2019

Simply running var utm = require('@segment/utm-params') gives:

internal/modules/cjs/loader.js:582
    throw err;
    ^

Error: Cannot find module 'type'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\mikem\OneDrive\Documents\appname\appname\node_modules\component-querystr
ing\index.js:7:12)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
@mikemaccana
Copy link
Author

Type is https://github.com/Gozala/type#readme which is 7 years old and has no index.js, which is why it can't be loaded.

@mikemaccana mikemaccana changed the title 'type' module required but not listed in dependencies Requires 'type' module, which is 7 years old and can not be loaded. Feb 21, 2019
@mikemaccana
Copy link
Author

See fix at Gozala/type#3

@mikemaccana
Copy link
Author

(that said, it's probably better to depend on something better maintained)

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

1 participant