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

Unable to reference external typings #59

Open
andrew-buckley opened this issue Apr 27, 2018 · 2 comments
Open

Unable to reference external typings #59

andrew-buckley opened this issue Apr 27, 2018 · 2 comments

Comments

@andrew-buckley
Copy link

I'm trying to use the "externals" flag to get the d.ts bundle to include typings for external libraries that exist in my node_modules folder, however for the life of my I cannot get this to work properly. I continually get : TypeError: Cannot read property 'file' of undefined. I've looked through other issues here and it seems some involve the author manually hacking the project, and others just seem to not have been resolved. Anyone else having trouble with this? I'd appreciate any help.

@cliedelt
Copy link

i have this problem aswell !

@yonixw
Copy link

yonixw commented Oct 22, 2020

I think it is only for external files (outside directory) but will not resolve module X to node_modules\X.

So this will not ❌ work:

  • import * as wrap from "word-wrap"

But this did ✔ work for me:

  • import * as wrap from "../node_modules/word-wrap"

This project just need a little push :)

123webprotection pushed a commit to 123webprotection/example_plugin that referenced this issue Oct 22, 2020
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

3 participants