This repository was archived by the owner on Aug 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 40
dynamic import support #990
Comments
Hi @NickIliev , |
Hi @Serge-SDL, could you please verify that the file is actually present in the built application? The webpack compilation includes only files that are explicitly required in the source code or included by some webpack plugin. An easy way to copy static assets is by using the nativescript-dev-webpack/demo/TypeScriptApp/webpack.config.js Lines 237 to 241 in 3b120da
|
Closing as a duplicate to #990 - please continue the discussion in the linked issue. |
I think ^ meant #989 not 990 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
@Serge-SDL commented on Tue Jul 16 2019
Hi,
I need to use some dynamic import in my app (importing js module from http or local device file), but it doesn't work.
I tried :
import(/* webpackIgnore: true */ file.path)
-> got the error "Not supported"and
System.import(file.path)
-> got the error "Cannot find module '/path/to/file'" even if the file exists.Is this situation expected? Is there an other way?
thanks for your help!
The text was updated successfully, but these errors were encountered: