乱七八糟的问题

原创
08/06 16:26
阅读数 304

Cookie "resolution" will be soon treated as cross-site cookie against

Question 0001

Cookie "resolution" will be soon treated as cross-site cookie against "https://www.example.com/path/to/" because the scheme does not match.
Cookie "resolution" will be soon treated as cross-site cookie against "https://www.example.com/path/to/static/js/xx.js" because the scheme does not match.
Cookie "resolution" will be soon treated as cross-site cookie against "https://www.example.com/path/to/static/js/yy.js" because the scheme does not match.

Answer 0001


uni-app build exception

Question 0002

> cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build

internal/modules/cjs/loader.js:888
  throw err;
  ^

Error: Cannot find module '@dcloudio/vue-cli-plugin-uni/packages/@vue/component-compiler-utils'
Require stack:
- .../node_modules/@dcloudio/vue-cli-plugin-hbuilderx/module-alias.js
- .../node_modules/@dcloudio/vue-cli-plugin-hbuilderx/index.js
- .../node_modules/@vue/cli-service/lib/Service.js
- .../node_modules/@vue/cli-service/bin/vue-cli-service.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.Module._resolveFilename (.../node_modules/module-alias/index.js:49:29)
    at Function.resolve (internal/modules/cjs/helpers.js:94:19)
    at Object.<anonymous> (.../node_modules/@dcloudio/vue-cli-plugin-hbuilderx/module-alias.js:14:63)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '.../node_modules/@dcloudio/vue-cli-plugin-hbuilderx/module-alias.js',
    '.../node_modules/@dcloudio/vue-cli-plugin-hbuilderx/index.js',
    '.../node_modules/@vue/cli-service/lib/Service.js',
    '.../node_modules/@vue/cli-service/bin/vue-cli-service.js'
  ]
}

Quesion 0003

> cross-env NODE_ENV=production UNI_PLATFORM=h5 vue-cli-service uni-build

 ERROR  Error: Cannot find module 'webpack/lib/RuleSet'
Require stack:
- .../node_modules/@dcloudio/vue-cli-plugin-uni/lib/configure-webpack.js
- .../node_modules/@dcloudio/vue-cli-plugin-uni/index.js
- .../node_modules/@vue/cli-service/lib/Service.js
- .../node_modules/@vue/cli-service/bin/vue-cli-service.js
Error: Cannot find module 'webpack/lib/RuleSet'
Require stack:
- .../node_modules/@dcloudio/vue-cli-plugin-uni/lib/configure-webpack.js
- .../node_modules/@dcloudio/vue-cli-plugin-uni/index.js
- .../node_modules/@vue/cli-service/lib/Service.js
- .../node_modules/@vue/cli-service/bin/vue-cli-service.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
    at Function.Module._resolveFilename (.../node_modules/module-alias/index.js:49:29)
    at Function.Module._load (internal/modules/cjs/loader.js:730:27)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (.../node_modules/@dcloudio/vue-cli-plugin-uni/lib/configure-webpack.js:4:17)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部