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

Can't resolve an absolute path of appComponents on Windows #573

Closed
6 tasks done
vchimev opened this issue Jun 19, 2018 · 0 comments
Closed
6 tasks done

Can't resolve an absolute path of appComponents on Windows #573

vchimev opened this issue Jun 19, 2018 · 0 comments

Comments

@vchimev
Copy link
Contributor

vchimev commented Jun 19, 2018

Issue Checklist

  • You are submitting: a bug report.

Tell us about the problem

An absolute path added to appComponents in the webpack.config.js file can't be resolved during bundling on Windows.

As a workaround, a relative path could be used, however, then the added components will be included in the bundle.js instead of the vendor.js file.

Example: HERE.

Output:

ERROR in ./main.ts
Module not found: Error: Can't resolve 'C:Users
                                               chimevWorkgitandroid-extend-ngappmain-activity.android.ts' in 'C:\Users\vchimev\Work\git\android-extend-ng\app'
 @ ./main.ts 5:0-83
Webpack compilation complete.

Local environment

  • Platform: Windows
  • Node version: 8.11.3
  • NativeScript CLI version: 4.1.0

Project data

@vchimev vchimev self-assigned this Jun 19, 2018
vchimev pushed a commit that referenced this issue Jun 26, 2018
…ws (#578)

* fix: resolve appComponents absolute paths on Windows

Fix #573.

* fix: resolve xml namespaces absolute paths on Windows

* chore(JavaScriptApp): add webpack.config.js file

Clean up npm scripts.

* test(JavaScriptApp): extend android application

* test(JavaScriptApp): extend android activity

* chore(TypeScriptApp): add webpack.config.js file

Clean up npm scripts.

* chore(TypeScriptApp): add platform declarations

* test(TypeScriptApp): extend android application

* test(TypeScriptApp): extend android activity

* chore(AngularApp): add webpack.config.js file

Clean up npm scripts.

* chore(AngularApp): add platform declarations

* test(AngularApp): extend android application

* test(AngularApp): extend android activity

* chore(AngularApp): update @angular/compiler-cli version

* refactor(demos): minor tweaks

* chore(JavaScript): remove unused variables

* refactor: address comments

* chore(e2e): update application activity to launch

* refactor: remove tns-platform-declarations dependency

* chore(e2e): remove application activity from capabilities

The nativescript-dev-appium plugin gets it automatically, no need to declare it in the `appium.capabilities.json` file.
@vchimev vchimev removed their assignment Jul 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant