ditojs / dito-example

4 stars 2 forks source link

missing current-script-polyfill dependency #12

Closed puckey closed 4 years ago

puckey commented 4 years ago

When I do yarn install, I get the following error:

This dependency was not found:

* current-script-polyfill in ./node_modules/@ditojs/admin/dist/dito-admin.umd.min.js, ./node_modules/@ditojs/ui/dist/dito-ui.umd.min.js

Full output below:

●  yarn install
yarn install v1.12.3
warning ../../package.json: No license field
info No lockfile found.
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning @ditojs/server > koa-webpack > @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
warning @ditojs/server > @vue/cli-plugin-babel > @vue/cli-shared-utils > @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
warning @ditojs/server > @vue/cli-service > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @ditojs/server > @vue/cli-plugin-babel > @vue/cli-shared-utils > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > @vue/cli-service > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @ditojs/server > @vue/cli-plugin-babel > @vue/cli-shared-utils > request > har-validator@5.1.5: this library is no longer supported
warning @ditojs/server > @vue/cli-plugin-babel > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @ditojs/server > @vue/cli-plugin-babel > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @ditojs/server > @vue/cli-plugin-babel > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning sqlite3 > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @babel/cli > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
warning " > @ditojs/server@0.150.0" has incorrect peer dependency "knex@^0.20.0".
warning "@ditojs/server > babel-loader@8.1.0" has unmet peer dependency "webpack@>=2".
warning "@ditojs/server > koa-webpack@5.3.0" has unmet peer dependency "webpack@^4.28.0".
warning "@ditojs/server > @vue/cli-plugin-eslint > eslint-loader@2.2.1" has incorrect peer dependency "eslint@>=1.6.0 <7.0.0".
warning "@ditojs/server > koa-webpack > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
warning "@ditojs/server > koa-webpack > webpack-hot-client@4.1.2" has unmet peer dependency "webpack@^4.0.0".
warning "@ditojs/server > @ditojs/admin > tiptap-extensions > prosemirror-utils@0.9.6" has incorrect peer dependency "prosemirror-tables@^0.9.1".
warning "@ditojs/server > koa-webpack > webpack-hot-client > @webpack-contrib/schema-utils@1.0.0-beta.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
warning " > knex@0.21.2" has unmet peer dependency "mssql@^6.2.0".
warning " > knex@0.21.2" has unmet peer dependency "mysql@^2.18.1".
warning " > knex@0.21.2" has unmet peer dependency "mysql2@^2.1.0".
warning " > knex@0.21.2" has unmet peer dependency "pg@^8.0.3".
warning " > knex@0.21.2" has incorrect peer dependency "sqlite3@^4.1.1".
warning " > sqlite3@5.0.0" has unmet peer dependency "node-gyp@3.x".
[5/5] 📃  Building fresh packages...
success Saved lockfile.
$ yarn clean && yarn build
yarn run v1.12.3
warning ../../package.json: No license field
$ rimraf dist
✨  Done in 0.19s.
yarn run v1.12.3
warning ../../package.json: No license field
$ yarn run build:src && yarn run build:admin
warning ../../package.json: No license field
$ babel src -d dist --copy-files --source-maps inline
Successfully compiled 27 files with Babel (741ms).
warning ../../package.json: No license field
$ cross-env NODE_ENV=production vue-cli-service build src/admin/index.js --dest dist/admin

⠇  Building for production...

 ERROR  Failed to compile with 2 errors                                                                               9:37:12 PM

This dependency was not found:

* current-script-polyfill in ./node_modules/@ditojs/admin/dist/dito-admin.umd.min.js, ./node_modules/@ditojs/ui/dist/dito-ui.umd.min.js

To install it, you can run: npm install --save current-script-polyfill
 ERROR  Build failed with errors.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
lehni commented 4 years ago

Hmm that's very odd. It works for me, fresh install:

➜  dito-example git:(master) yarn install
yarn install v1.22.4
info No lockfile found.
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
warning @ditojs/server > @vue/cli-service > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @ditojs/server > koa-webpack > @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
warning @ditojs/server > @vue/cli-service > @vue/cli-shared-utils > @hapi/joi@15.1.1: joi is leaving the @hapi organization and moving back to 'joi' (https://github.com/sideway/joi/issues/2411)
warning @ditojs/server > @vue/cli-service > @vue/cli-shared-utils > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @ditojs/server > @vue/cli-service > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > koa-webpack > @hapi/joi > @hapi/topo > @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
warning @ditojs/server > @vue/cli-service > @vue/cli-shared-utils > request > har-validator@5.1.5: this library is no longer supported
warning @ditojs/server > @vue/cli-service > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @ditojs/server > @vue/cli-service > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning @ditojs/server > @vue/cli-service > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning sqlite3 > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @babel/cli > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
[3/5] 🚚  Fetching packages...
[4/5] 🔗  Linking dependencies...
warning " > @ditojs/server@0.150.0" has incorrect peer dependency "knex@^0.20.0".
warning "@ditojs/server > babel-loader@8.1.0" has unmet peer dependency "webpack@>=2".
warning "@ditojs/server > koa-webpack@5.3.0" has unmet peer dependency "webpack@^4.28.0".
warning "@ditojs/server > @vue/cli-plugin-eslint > eslint-loader@2.2.1" has incorrect peer dependency "eslint@>=1.6.0 <7.0.0".
warning "@ditojs/server > koa-webpack > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
warning "@ditojs/server > koa-webpack > webpack-hot-client@4.1.2" has unmet peer dependency "webpack@^4.0.0".
warning "@ditojs/server > @ditojs/admin > tiptap-extensions > prosemirror-utils@0.9.6" has incorrect peer dependency "prosemirror-tables@^0.9.1".
warning "@ditojs/server > koa-webpack > webpack-hot-client > @webpack-contrib/schema-utils@1.0.0-beta.0" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
[5/5] 🔨  Building fresh packages...
success Saved lockfile.
$ yarn clean && yarn build
yarn run v1.22.4
$ rimraf dist
✨  Done in 0.20s.
yarn run v1.22.4
$ yarn run build:src && yarn run build:admin
$ babel src -d dist --copy-files --source-maps inline
Successfully compiled 27 files with Babel (848ms).
$ cross-env NODE_ENV=production vue-cli-service build src/admin/index.js --dest dist/admin

⠹  Building for production...

 WARNING  Compiled with 2 warnings                                                                                                                                  11:34:25 PM

 warning  

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  js/chunk-vendors.b92e595e.js (1.45 MiB)

 warning  

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  app (1.46 MiB)
      js/chunk-vendors.b92e595e.js
      js/app.1c234e22.js

  File                                      Size             Gzipped

  dist/admin/js/chunk-vendors.b92e595e.j    1489.42 KiB      423.65 KiB
  s
  dist/admin/js/app.1c234e22.js             2.63 KiB         1.35 KiB
  dist/admin/js/chunk-2d0da762.724aec7e.    1.93 KiB         0.97 KiB
  js
  dist/admin/js/chunk-2d230131.d3b5f07b.    0.62 KiB         0.41 KiB
  js
  dist/admin/js/chunk-2d208132.04feb807.    0.30 KiB         0.24 KiB
  js

  Images and other types of assets omitted.

 DONE  Build complete. The dist/admin directory is ready to be deployed.
 INFO  Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html

✨  Done in 19.53s.
✨  Done in 68.17s.
➜  dito-example git:(master) 

Maybe you need to update Yarn?

puckey commented 4 years ago

How odd. I updated Yarn to the latest version, but it didn't have any effect on the error I am seeing.

lehni commented 4 years ago

@puckey could you check if this did it?

puckey commented 4 years ago

@lehni No, still the same error when installing

lehni commented 4 years ago

Hmpf… I'll look into it further!

lehni commented 4 years ago

It's linked to this, and I can reproduce it now: https://github.com/vuejs/vue-cli/pull/3760

lehni commented 4 years ago

@puckey this is fixed now, right?

puckey commented 4 years ago

This is now fixed.