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.

errors in never-included files #1004

Closed
Closed
Assignees
Labels
@wendt88

Description

Environment
using nativescript-vue:

√ Getting NativeScript components versions information...
√ Component nativescript has 6.0.2 version and is up to date.
√ Component tns-core-modules has 6.0.1 version and is up to date.
√ Component tns-android has 6.0.0 version and is up to date.
√ Component tns-ios has 6.0.1 version and is up to date.

packages:

"dependencies": {
 "@mdi/font": "^3.7.95",
 "@vue/devtools": "^5.1.1",
 "axios": "^0.19.0",
 "base-64": "^0.1.0",
 "lodash": "^4.17.11",
 "md5": "^2.2.1",
 "mime": "^2.4.3",
 "moment": "^2.24.0",
 "nativescript-background-http": "^3.4.0",
 "nativescript-cfalert-dialog": "^1.0.15",
 "nativescript-drop-down": "^5.0.2",
 "nativescript-exit": "^1.0.1",
 "nativescript-feedback": "^1.3.9",
 "nativescript-geolocation": "^5.1.0",
 "nativescript-google-maps-sdk": "^2.7.0",
 "nativescript-imagepicker": "^6.2.0",
 "nativescript-mediafilepicker": "^2.0.16",
 "nativescript-menu": "^1.1.3",
 "nativescript-nativemediapicker": "^1.0.1",
 "nativescript-orientation": "^2.2.1",
 "nativescript-secure-storage": "^2.4.0",
 "nativescript-socketio": "^3.3.1",
 "nativescript-theme-core": "^1.0.6",
 "nativescript-toasty": "^2.0.0",
 "nativescript-ui-autocomplete": "5.0.0",
 "nativescript-ui-listview": "7.0.0",
 "nativescript-ui-sidedrawer": "7.0.0",
 "nativescript-videoplayer": "^4.2.1",
 "nativescript-vue": "^2.2.2",
 "nativescript-vue-devtools": "^1.2.0",
 "tns-core-modules": "6.0.1",
 "vue-async-computed": "^3.7.0",
 "vue-i18n": "^8.11.2",
 "vuex": "^3.1.1"
},
"devDependencies": {
 "@babel/core": "^7.5.0",
 "@babel/preset-env": "7.3.1",
 "babel-eslint": "^10.0.2",
 "babel-loader": "^8.0.6",
 "babel-traverse": "6.26.0",
 "babel-types": "6.26.0",
 "babylon": "6.18.0",
 "eslint": "^6.0.1",
 "eslint-import-resolver-webpack": "^0.11.1",
 "eslint-plugin-standard": "^4.0.0",
 "eslint-plugin-vue": "^5.2.3",
 "intl": "^1.2.5",
 "lazy": "1.0.11",
 "nativescript-dev-webpack": "1.0.1",
 "nativescript-vue-template-compiler": "^2.2.2",
 "net": "^1.0.2",
 "node-sass": "^4.12.0",
 "stylelint": "^10.0.1",
 "stylelint-config-standard": "^18.3.0",
 "stylelint-scss": "^3.9.0",
 "vue-loader": "^15.7.0",
 "webpack": "^4.35.2",
 "webpack-bundle-analyzer": "^3.3.2",
 "webpack-cli": "^3.3.5"
}

Describe the bug
I use a own submodule (git), which i use to an other project. there are some unused files for my mobile application inside.
After upgrade to nativescript 6, and tns migrate i get some errors of missing packages like

ERROR in <my submodule file>
Module not found: Error: Can't resolve 'bcrypt' in '<my submodule>'
 @ <my submodule file> 9:15-32
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in <my submodule test file>
Module not found: Error: Can't resolve 'tape' in '<my submodule>'
 @ <my submodule test file> 9:15-32
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js

those files gets never included in my repo (like test files).
so I tried to install the missing packages like bcrypt and tape, but so I get a few other errors during build from those packages:

ERROR in ../node_modules/node-gyp/lib/node-gyp.js
Module not found: Error: Can't resolve '../package' in 'C:\Projects\framework2-vue-app\node_modules\node-gyp\lib'
 @ ../node_modules/node-gyp/lib/node-gyp.js 53:16-37
 @ ../node_modules/node-pre-gyp/lib/util/compile.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-pre-gyp/lib/unpublish.js
Module not found: Error: Can't resolve 'aws-sdk' in 'C:\Projects\framework2-vue-app\node_modules\node-pre-gyp\lib'
 @ ../node_modules/node-pre-gyp/lib/unpublish.js 23:12-30
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-pre-gyp/lib/publish.js
Module not found: Error: Can't resolve 'aws-sdk' in 'C:\Projects\framework2-vue-app\node_modules\node-pre-gyp\lib'
 @ ../node_modules/node-pre-gyp/lib/publish.js 27:12-30
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-pre-gyp/lib/info.js
Module not found: Error: Can't resolve 'aws-sdk' in 'C:\Projects\framework2-vue-app\node_modules\node-pre-gyp\lib'
 @ ../node_modules/node-pre-gyp/lib/info.js 19:12-30
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/detect-libc/lib/detect-libc.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\detect-libc\lib'
 @ ../node_modules/detect-libc/lib/detect-libc.js 5:16-40
 @ ../node_modules/node-pre-gyp/lib/util/versioning.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-gyp/lib/node-gyp.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\node-gyp\lib'
 @ ../node_modules/node-gyp/lib/node-gyp.js 13:20-44
 @ ../node_modules/node-pre-gyp/lib/util/compile.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-gyp/lib/find-vs2017.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\node-gyp\lib'
 @ ../node_modules/node-gyp/lib/find-vs2017.js 2:15-39
 @ ../node_modules/node-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-gyp/lib/node-gyp.js
 @ ../node_modules/node-pre-gyp/lib/util/compile.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-gyp/lib/build.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\node-gyp\lib'
 @ ../node_modules/node-gyp/lib/build.js 12:11-35
 @ ../node_modules/node-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-gyp/lib/node-gyp.js
 @ ../node_modules/node-pre-gyp/lib/util/compile.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-gyp/lib/configure.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\node-gyp\lib'
 @ ../node_modules/node-gyp/lib/configure.js 19:9-33
 @ ../node_modules/node-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-gyp/lib/node-gyp.js
 @ ../node_modules/node-pre-gyp/lib/util/compile.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-pre-gyp/lib/testbinary.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\node-pre-gyp\lib'
 @ ../node_modules/node-pre-gyp/lib/testbinary.js 12:9-33
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/node-pre-gyp/lib/util/compile.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\node-pre-gyp\lib\util'
 @ ../node_modules/node-pre-gyp/lib/util/compile.js 12:9-33
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/osenv/osenv.js
Module not found: Error: Can't resolve 'child_process' in 'C:\Projects\framework2-vue-app\node_modules\osenv'
 @ ../node_modules/osenv/osenv.js 5:11-35
 @ ../node_modules/node-gyp/lib/install.js
 @ ../node_modules/node-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-gyp/lib/node-gyp.js
 @ ../node_modules/node-pre-gyp/lib/util/compile.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/forever-agent/index.js
Module not found: Error: Can't resolve 'tls' in 'C:\Projects\framework2-vue-app\node_modules\forever-agent'
 @ ../node_modules/forever-agent/index.js 7:10-24
 @ ../node_modules/request/request.js
 @ ../node_modules/request/index.js
 @ ../node_modules/node-pre-gyp/lib/install.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js
ERROR in ../node_modules/tunnel-agent/index.js
Module not found: Error: Can't resolve 'tls' in 'C:\Projects\framework2-vue-app\node_modules\tunnel-agent'
 @ ../node_modules/tunnel-agent/index.js 4:10-24
 @ ../node_modules/request/lib/tunnel.js
 @ ../node_modules/request/request.js
 @ ../node_modules/request/index.js
 @ ../node_modules/node-pre-gyp/lib/install.js
 @ ../node_modules/node-pre-gyp/lib sync ^\.\/.*$
 @ ../node_modules/node-pre-gyp/lib/node-pre-gyp.js
 @ ../node_modules/bcrypt/bcrypt.js
 @ ./api/sdk/tools/crypto.js
 @ . sync (?<!\bApp_Resources\b.*)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$
 @ ./main.js

Additional context
why all files in ./app get built?
and how can I ignore some files from the build-process?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /