Skip to content

compile error: cannot find module ....@loopback/metadata/src/types #1773

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

Closed
gms1 opened this issue Sep 28, 2018 · 1 comment
Closed

compile error: cannot find module ....@loopback/metadata/src/types #1773

gms1 opened this issue Sep 28, 2018 · 1 comment

Comments

@gms1
Copy link
Contributor

gms1 commented Sep 28, 2018

Description / Steps to reproduce / Feature proposal

compile error:

> tsc

../node_modules/@loopback/authentication/dist8/src/keys.d.ts:89:99 - error TS2307: Cannot find module '../../context/node_modules/@loopback/metadata/src/types'.

89 export declare const AUTHENTICATION_METADATA_KEY: MetadataAccessor<AuthenticationMetadata, import("../../context/node_modules/@loopback/metadata/src/types").DecoratorType>;
     

looks indeed weird:

gms@orion:~/tmp$ wget -q https://registry.npmjs.org/@loopback/authentication/-/authentication-0.11.16.tgz
gms@orion:~/tmp$ tar -xzf authentication-0.11.16.tgz 
gms@orion:~/tmp$ find package/ -name "*.d.ts" -exec grep -Hw node_modules {} \;
package/dist8/src/keys.d.ts:export declare const AUTHENTICATION_METADATA_KEY: MetadataAccessor<AuthenticationMetadata, import("../../context/node_modules/@loopback/metadata/src/types").DecoratorType>;
package/dist10/src/keys.d.ts:export declare const AUTHENTICATION_METADATA_KEY: MetadataAccessor<AuthenticationMetadata, import("../../context/node_modules/@loopback/metadata/src/types").DecoratorType>;
gms@orion:~/tmp$ 

Current Behavior

cannot find module

Expected Behavior

should find module

See Reporting Issues for more tips on writing good issues

@raymondfeng
Copy link
Contributor

It's similar as #1643. The root problem is microsoft/TypeScript#26985.

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