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

Can't load file as a module. #823

Open
eestein opened this issue Dec 16, 2018 · 0 comments
Open

Can't load file as a module. #823

eestein opened this issue Dec 16, 2018 · 0 comments

Comments

@eestein
Copy link

eestein commented Dec 16, 2018

I have a JS umd file exported with contents from an Angular 6 library. In order to use it, the "right" approach would be using the tsconfig file, but as tracked here #220 it is still not possible.
I've tried also uploading the tgz file and adding the tag under package.json's dependencies, like:

"@lib/components": "file:./path_to_tgz.tgz"

But it also doesn't work.

Currently I'm being "forced" to use the imports like

import {Component} from '../lib_file'

But that is far from optimal, since it'd require me changing the all the demos during runtime.

Are there any workarounds?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants