Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Unable to webpack ts app. Can't resolve 'navigation/example-page' #627

Closed
zbranzov opened this issue Aug 7, 2018 · 3 comments
Closed

Unable to webpack ts app. Can't resolve 'navigation/example-page' #627

zbranzov opened this issue Aug 7, 2018 · 3 comments
Assignees

Comments

@zbranzov
Copy link

zbranzov commented Aug 7, 2018

Using this app https://github.com/NativeScript/nativescript-ui-autocomplete/tree/master/demo and "nativescript-dev-webpack": "~0.15.0" we are unable to build with tns run ios --bundle --env.uglify --for-device --release . Same happens for android. It throws separate error for each xml :
..
ERROR in ./examples/completion-mode/autocomplete-startswith-page.xml
Module not found: Error: Can't resolve 'navigation/example-page' in '/Users/branzov/Git/nativescript-ui-autocomplete/demo/app/examples/completion-mode'
@ ./examples/completion-mode/autocomplete-startswith-page.xml 1:69-103 1:189-223
@ . sync (root|page).(xml|css|js|ts|scss)$
@ ./app.ts

ERROR in ./examples/completion-mode/autocomplete-contains-page.xml
Module not found: Error: Can't resolve 'navigation/example-page' in '/Users/branzov/Git/nativescript-ui-autocomplete/demo/app/examples/completion-mode'
@ ./examples/completion-mode/autocomplete-contains-page.xml 1:69-103 1:189-223
@ . sync (root|page).(xml|css|js|ts|scss)$
@ ./app.ts
..

@NickIliev NickIliev assigned NickIliev and unassigned NickIliev Aug 8, 2018
@manoldonev manoldonev self-assigned this Aug 13, 2018
@manoldonev
Copy link
Contributor

@zbranzov @NickIliev I tested this again with latest dts changes (still on PR
https://github.com/NativeScript/nativescript-ui-autocomplete/pull/41) and everything works as expected on both iOS and Android (with and without webpack, uglify) with no need to define custom bundle-config.

@zbranzov zbranzov reopened this Aug 23, 2018
@zbranzov
Copy link
Author

If the app hasn't been built before the webpack command "tns run ios --bundle" same errors are thrown. In fact, if you run 'tsc' command will solve the issue but it seems like a side effect.

@sis0k0
Copy link
Contributor

sis0k0 commented Dec 13, 2018

The fix will be released with 0.18.4.

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

No branches or pull requests

4 participants