Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

NS 6.0 RC - Webpack crash w/ JS plugins #983

Closed
Labels
@NathanaelA

Description

@NathanaelA

Environment
Provide version numbers for the following components (information can be retrieved by runningtns info in your project folder or by inspecting thepackage.json of the project):

  • CLI: 6.0.0-2019-07-12-114039-13633
  • Cross-platform modules: 6.0.1
  • Android Runtime: 6.0.0
  • Plugin(s): added a included dummy plugin.
  • Node.js: 10.15.3
  • nativescript-dev-webpack": "1.0.0"
    also tried
  • "nativescript-dev-webpack": "^1.0.0-next-2019-07-04-112332-01"

Please note; this is as stock as possible -- I did the following:

tns create demo --jscd demotns migratetns plugin add ../src<edit main-page.json to add the require to add the plugin>tns buld android
  • [] Attached is the complete test project, including package/webpack... However, other than one minor change (to the main-page to reference the plugin) and atns plugin add ../src everything should be 100% stock.

Describe the bug

ERROR in /home/nathanael/projects/NativeScript/repos/test-plugin/src/test.jsModule not found: Error: Can't resolve 'tns-core-modules/file-system' in '/home/nathanael/projects/NativeScript/repos/test-plugin/src' @ /home/nathanael/projects/NativeScript/repos/test-plugin/src/test.js 1:11-50 @ ./main-page.js @ . sync (?<!App_Resources.*).(xml|css|js|(?<!d.)ts|scss)$ @ ./app.jsWebpack compilation complete.Executing webpack failed with exit code 2.

To Reproduce
tns build android (ortns run android)

Expected behavior
Works. 😀

Sample project
Attached.

Additional context
This is on Linux. I have not tested this on Windows or Mac. Appears though to be a webpack issue with symlinked plugins.

test-plugin.zip

More information
This appears to be a symlink issue -- if I delete the symlink out of the node_modules folder, and then COPY the plugins "src" folder into the demo node_modules folder (and rename src back to the proper name); then building actually works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp