You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
Please note; this is as stock as possible -- I did the following:
tns create demo --js
cd demo
tns migrate
tns 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 a tns plugin add ../src everything should be 100% stock.
Describe the bug
ERROR in /home/nathanael/projects/NativeScript/repos/test-plugin/src/test.js
Module 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.js
Webpack compilation complete.
Executing webpack failed with exit code 2.
To Reproduce tns build android (or tns 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.
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.
The text was updated successfully, but these errors were encountered:
The resolve property of the JavaScript Webpack config was not properly configured for symlinked packages and the Webpack compilation was not searching fornode_modules in the app dir when a symlink is followed.
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):also tried
Please note; this is as stock as possible -- I did the following:
tns plugin add ../src
everything should be 100% stock.Describe the bug
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.
The text was updated successfully, but these errors were encountered: