I just cloned this repository: react-native-paper
but when I run on the root directory:
$ yarn install
I get the following warnings:
D:\react-native-paper (master) (react-native-paper#2.4.0)
λ yarn install
yarn install v1.13.0
[1/4] Resolving packages...
warning Resolution field "babel-core#7.0.0-bridge.0" is incompatible with requested version "babel-core#^6.26.0"
warning Resolution field "babel-core#7.0.0-bridge.0" is incompatible with requested version "babel-core#^6.26.0"
warning Resolution field "babel-core#7.0.0-bridge.0" is incompatible with requested version "babel-core#^6.0.0"
warning Resolution field "babel-core#7.0.0-bridge.0" is incompatible with requested version "babel-core#^6.0.0"
warning Resolution field "babel-core#7.0.0-bridge.0" is incompatible with requested version "babel-core#^6.7.2"
Then, when I do:
$ cd example
$ yarn install
I get the following output with more warnings:
yarn install v1.13.0
[1/4] Resolving packages...
warning Resolution field "create-react-context#0.2.3" is incompatible with requested version "create-react-context#0.2.2"
[2/4] Fetching packages...
info fsevents#1.2.4: The platform "win32" is incompatible with this module.
info "fsevents#1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/traveling-fastlane-darwin#1.5.0: The platform "win32" is incompatible with this module.
info "#expo/traveling-fastlane-darwin#1.5.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-darwin-ia32#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-darwin-ia32#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-darwin-ia32#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-darwin-x64#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-darwin-x64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-freebsd-ia32#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-freebsd-ia32#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-freebsd-ia32#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-freebsd-x64#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-freebsd-x64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-arm#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-linux-arm#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-arm#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-linux-arm64#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-linux-arm64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-arm64#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-linux-ia32#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-linux-ia32#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-ia32#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-linux-x64#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-linux-x64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-sunos-x64#2.2.8: The platform "win32" is incompatible with this module.
info "#expo/ngrok-bin-sunos-x64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-win32-ia32#2.2.8-beta.1: The CPU architecture "x64" is incompatible with this module.
info "#expo/ngrok-bin-win32-ia32#2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > create-react-context#0.2.3" has unmet peer dependency "prop-types#^15.0.0".
warning " > #expo/vector-icons#8.0.0" has unmet peer dependency "expo-font#^1.0.0".
warning "expo > react-native-reanimated#1.0.0-alpha.10" has incorrect peer dependency "react#16.0.0-alpha.6".
warning "expo > react-native-reanimated#1.0.0-alpha.10" has incorrect peer dependency "react-native#^0.44.1".
warning "expo > babel-preset-expo > #babel/plugin-proposal-decorators#7.1.2" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > #babel/plugin-proposal-decorators > #babel/plugin-syntax-decorators#7.1.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-proposal-export-default-from#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-syntax-dynamic-import#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-syntax-export-default-from#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0". warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-arrow-functions#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-block-scoping#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-classes#7.1.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-computed-properties#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-destructuring#7.1.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-exponentiation-operator#7.1.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-for-of#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-function-name#7.1.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-literals#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-object-assign#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-parameters#7.1.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-react-display-name#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-react-jsx#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-react-jsx-source#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0". warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-regenerator#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-runtime#7.1.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-shorthand-properties#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-spread#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-sticky-regex#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-template-literals#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-typescript#7.1.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-unicode-regex#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-proposal-class-properties > #babel/plugin-syntax-class-properties#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-proposal-nullish-coalescing-operator > #babel/plugin-syntax-nullish-coalescing-operator#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-proposal-object-rest-spread > #babel/plugin-syntax-object-rest-spread#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-proposal-optional-catch-binding > #babel/plugin-syntax-optional-catch-binding#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-proposal-optional-chaining > #babel/plugin-syntax-optional-chaining#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-flow-strip-types > #babel/plugin-syntax-flow#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-react-jsx > #babel/plugin-syntax-jsx#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "expo > babel-preset-expo > metro-react-native-babel-preset > #babel/plugin-transform-typescript > #babel/plugin-syntax-typescript#7.0.0" has unmet peer dependency "#babel/core#^7.0.0-0".
I pay specially attention to the above warnings because when I try to run the application with (inside directory: /example):
$ yarn start
I get the following output on the terminal:
There is a new version of expo-cli available (2.6.14).
You are currently using expo-cli 2.3.8
Run `npm install -g expo-cli` to get the latest version
[23:26:13] Starting project at D:\react-native-paper\example
[23:26:23] Expo DevTools is running at http://localhost:19002
[23:26:23] Opening DevTools in the browser... (press shift-d to disable)
[23:27:19] Starting Metro Bundler on port 19001.
[23:27:32] Successfully ran `adb reverse`. Localhost URLs should work on the connected Android device.
[23:27:36] Tunnel ready.
exp://192.168.1.194:19000
[QR CODE HERE]
To run the app with live reloading, choose one of:
• Sign in as #napolev in Expo Client on Android or iOS. Your projects will automatically appear in the "Projects" tab.
• Scan the QR code above with the Expo app (Android) or the Camera app (iOS).
• Press a for Android emulator.
• Press e to send a link to your phone with email/SMS.
Press ? to show a list of all available commands.
Logs for your project will appear below. Press Ctrl+C to exit.
[23:28:51] Unable to resolve "#babel/runtime/helpers/interopRequireDefault" from "..\src\index.js"
Building JavaScript bundle [=================================================================================================== ] 99%
and also I get the following output on the mobile:
Unable to resolve module #babel/runtime/helpers/interopRequireDefault from index.js
as you can see on the image below:
Any idea on how to make this application run on the mobile?
Thanks!
Please try to execute
yarn add #babel/runtime
Related
I'm trying to build a Dockerfile with a node and install ReactJS there:
FROM node
WORKDIR /home/node/app
RUN npm install -g create-react-app
RUN create-react-app .
CMD npm start
During the build, the following errors occur, and the corresponding files do not appear in the volume:
Creating a new React app in /home/node/app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
yarn add v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.2.1: The platform "linux" is incompatible with this module.
info "fsevents#2.2.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.3.1: The platform "linux" is incompatible with this module.
info "fsevents#2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > #typescript-eslint/eslint-plugin > tsutils#3.17.1" has unmet peer dependency "typescript#>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 6 new dependencies.
info Direct dependencies
├─ cra-template#1.1.1
├─ react-dom#17.0.1
├─ react-scripts#4.0.1
└─ react#17.0.1
info All dependencies
├─ cra-template#1.1.1
├─ react-dev-utils#11.0.1
├─ react-dom#17.0.1
├─ react-scripts#4.0.1
├─ react#17.0.1
└─ scheduler#0.20.1
Done in 49.74s.
Initialized a git repository.
Installing template dependencies using yarnpkg...
yarn add v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#2.3.1: The platform "linux" is incompatible with this module.
info "fsevents#2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.2.1: The platform "linux" is incompatible with this module.
info "fsevents#2.2.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > #typescript-eslint/eslint-plugin > tsutils#3.17.1" has unmet peer dependency "typescript#>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > #testing-library/user-event#12.6.2" has unmet peer dependency "#testing-library/dom#>=7.21.4".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 17 new dependencies.
info Direct dependencies
├─ #testing-library/jest-dom#5.11.9
├─ #testing-library/react#11.2.3
├─ #testing-library/user-event#12.6.2
├─ react-dom#17.0.1
├─ react#17.0.1
└─ web-vitals#0.2.4
info All dependencies
├─ #testing-library/dom#7.29.4
├─ #testing-library/jest-dom#5.11.9
├─ #testing-library/react#11.2.3
├─ #testing-library/user-event#12.6.2
├─ #types/aria-query#4.2.1
├─ #types/jest#26.0.20
├─ #types/testing-library__jest-dom#5.9.5
├─ css.escape#1.5.1
├─ css#3.0.0
├─ dom-accessibility-api#0.5.4
├─ lz-string#1.4.4
├─ min-indent#1.0.1
├─ react-dom#17.0.1
├─ react#17.0.1
├─ redent#3.0.0
├─ strip-indent#3.0.0
└─ web-vitals#0.2.4
Done in 10.61s.
Removing template package using yarnpkg...
yarn remove v1.22.5
[1/2] Removing module cra-template...
[2/2] Regenerating lockfile and installing missing dependencies...
info fsevents#2.3.1: The platform "linux" is incompatible with this module.
info "fsevents#2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.2.1: The platform "linux" is incompatible with this module.
info "fsevents#2.2.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
warning " > #testing-library/user-event#12.6.2" has unmet peer dependency "#testing-library/dom#>=7.21.4".
warning "react-scripts > #typescript-eslint/eslint-plugin > tsutils#3.17.1" has unmet peer dependency "typescript#>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
success Uninstalled packages.
Done in 10.09s.
Git commit not created Error: Command failed: git commit -m "Initialize project using Create React App"
at checkExecSyncError (node:child_process:682:11)
at execSync (node:child_process:719:15)
at tryGitCommit (/home/node/app/node_modules/react-scripts/scripts/init.js:62:5)
at module.exports (/home/node/app/node_modules/react-scripts/scripts/init.js:352:25)
at [eval]:3:14
at Script.runInThisContext (node:vm:134:12)
at Object.runInThisContext (node:vm:311:38)
at node:internal/process/execution:77:19
at [eval]-wrapper:6:22
at evalScript (node:internal/process/execution:76:60) {
status: 128,
signal: null,
output: [ null, null, null ],
pid: 153,
stdout: null,
stderr: null
}
Removing .git directory...
Success! Created app at /home/node/app
But if I transfer the command create-react-app . to the CMD section, the Dockerfile will be successfully built, but the next time the docker-container is started, there will be an error, since CMD executes the command every time it starts and tries to install the React.
How to make a container with Node correctly and install a ReactJS there?
I’ve spun up a new rails project with the following command: rails new -d postgresql --skip-spring --skip-test --webpack=react
Following this, I created my database, added <%= javascript_pack_tag 'hello_react' %> to application.html.erb and generated a homepage.
I then ran:
rails s # tab 1
bin/webpack-dev-server # tab 2
This all works fine and I can see “Hello World!” at localhost:3000.
However, when I try to push to Heroku, the build fails at webpack binstubs not found.. I can confirm that bin/webpack does exist, doing rails webpack:install:react does nothing.
I’ve followed the instructions at webpacker/deployment.md at master · rails/webpacker · GitHub to no avail, still getting the exact same error. I’ve even tried setting compile: true in config/webpacker.yml, in the production section. Nothing.
This seems odd as this is a new project with nothing special in it; I’m confused as to why it cannot seem to find the declaration of bin/webpack. It is not in my .gitignore.
Any help would be great.
Cheers.
Full build log:
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
USE_YARN_CACHE=true
NODE_ENV=production
NODE_MODULES_CACHE=true
NODE_VERBOSE=false
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
engines.yarn (package.json): unspecified (use default)
Resolving node version 12.x...
Downloading and installing node 12.19.1...
Using default npm version: 6.14.8
Resolving yarn version 1.22.x...
Downloading and installing yarn (1.22.10)
Installed yarn 1.22.10
-----> Installing dependencies
Installing node modules (yarn.lock)
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > #babel/preset-react#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-display-name#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-development#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-self#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-source#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-pure-annotations#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx > #babel/plugin-syntax-jsx#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning " > webpack-dev-server#3.11.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware#3.7.2" has unmet peer dependency "webpack#^4.0.0".
[4/4] Building fresh packages...
Done in 29.74s.
-----> Build
-----> Pruning devDependencies
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > #babel/preset-react#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-display-name#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-development#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-self#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-source#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-pure-annotations#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx > #babel/plugin-syntax-jsx#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning " > webpack-dev-server#3.11.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware#3.7.2" has unmet peer dependency "webpack#^4.0.0".
[4/4] Building fresh packages...
warning Ignored scripts due to flag.
Done in 5.82s.
-----> Caching build
- yarn cache
-----> Build succeeded!
! This app may not specify any way to start a node process
https://devcenter.heroku.com/articles/nodejs-support#default-web-process-type
! Unmet dependencies don't fail yarn install but may cause runtime issues
https://github.com/npm/npm/issues/7494
-----> Ruby app detected
-----> Installing bundler 2.1.4
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.7.2
-----> Installing dependencies using bundler 2.1.4
Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/............
Fetching rake 13.0.1
Installing rake 13.0.1
Fetching concurrent-ruby 1.1.7
Fetching thread_safe 0.3.6
Fetching minitest 5.14.2
Installing thread_safe 0.3.6
Installing minitest 5.14.2
Installing concurrent-ruby 1.1.7
Fetching zeitwerk 2.4.1
Installing zeitwerk 2.4.1
Fetching builder 3.2.4
Fetching erubi 1.10.0
Installing builder 3.2.4
Installing erubi 1.10.0
Fetching mini_portile2 2.4.0
Fetching crass 1.0.6
Installing mini_portile2 2.4.0
Installing crass 1.0.6
Fetching rack 2.2.3
Installing rack 2.2.3
Fetching nio4r 2.5.4
Installing nio4r 2.5.4 with native extensions
Fetching websocket-extensions 0.1.5
Installing websocket-extensions 0.1.5
Fetching mimemagic 0.3.5
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Installing mimemagic 0.3.5
Fetching msgpack 1.3.3
Installing msgpack 1.3.3 with native extensions
Using bundler 2.1.4
Fetching ffi 1.13.1
Installing ffi 1.13.1 with native extensions
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching pg 1.2.3
Installing pg 1.2.3 with native extensions
Fetching thor 1.0.1
Installing thor 1.0.1
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching turbolinks-source 5.2.0
Installing turbolinks-source 5.2.0
Fetching tzinfo 1.2.8
Installing tzinfo 1.2.8
Fetching nokogiri 1.10.10
Installing nokogiri 1.10.10 with native extensions
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching rack-proxy 0.6.5
Installing rack-proxy 0.6.5
Fetching sprockets 4.0.2
Installing sprockets 4.0.2
Fetching websocket-driver 0.7.3
Installing websocket-driver 0.7.3 with native extensions
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching marcel 0.3.3
Installing marcel 0.3.3
Fetching puma 4.3.6
Installing puma 4.3.6 with native extensions
Fetching bootsnap 1.5.1
Installing bootsnap 1.5.1 with native extensions
Fetching turbolinks 5.2.1
Installing turbolinks 5.2.1
Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions
Fetching activesupport 6.0.3.4
Installing activesupport 6.0.3.4
Fetching loofah 2.7.0
Installing loofah 2.7.0
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching globalid 0.4.2
Installing globalid 0.4.2
Fetching activemodel 6.0.3.4
Installing activemodel 6.0.3.4
Fetching jbuilder 2.10.1
Installing jbuilder 2.10.1
Fetching rails-html-sanitizer 1.3.0
Installing rails-html-sanitizer 1.3.0
Fetching activejob 6.0.3.4
Fetching activerecord 6.0.3.4
Installing activejob 6.0.3.4
Installing activerecord 6.0.3.4
Fetching actionview 6.0.3.4
Installing actionview 6.0.3.4
Fetching actionpack 6.0.3.4
Installing actionpack 6.0.3.4
Fetching actioncable 6.0.3.4
Installing actioncable 6.0.3.4
Fetching actionmailer 6.0.3.4
Installing actionmailer 6.0.3.4
Fetching railties 6.0.3.4
Fetching sprockets-rails 3.2.2
Installing sprockets-rails 3.2.2
Installing railties 6.0.3.4
Fetching activestorage 6.0.3.4
Installing activestorage 6.0.3.4
Fetching actionmailbox 6.0.3.4
Installing actionmailbox 6.0.3.4
Fetching actiontext 6.0.3.4
Installing actiontext 6.0.3.4
Fetching rails 6.0.3.4
Fetching webpacker 4.3.0
Installing rails 6.0.3.4
Installing webpacker 4.3.0
Fetching sassc-rails 2.1.2
Installing sassc-rails 2.1.2
Fetching sass-rails 6.0.0
Installing sass-rails 6.0.0
Bundle complete! 12 Gemfile dependencies, 57 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Bundle completed (208.33s)
Cleaning up the bundler cache.
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > #babel/preset-react#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-display-name#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-development#7.12.7" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-self#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-source#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-pure-annotations#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx > #babel/plugin-syntax-jsx#7.12.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning " > webpack-dev-server#3.11.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware#3.7.2" has unmet peer dependency "webpack#^4.0.0".
[4/4] Building fresh packages...
Done in 29.50s.
I, [2020-11-25T12:02:13.452090 #3686] INFO -- : Writing /tmp/build_6728f1b1/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js
I, [2020-11-25T12:02:13.452388 #3686] INFO -- : Writing /tmp/build_6728f1b1/public/assets/manifest-b4bf6e57a53c2bdb55b8998cc94cd00883793c1c37c5e5aea3ef6749b4f6d92b.js.gz
I, [2020-11-25T12:02:13.452661 #3686] INFO -- : Writing /tmp/build_6728f1b1/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2020-11-25T12:02:13.452831 #3686] INFO -- : Writing /tmp/build_6728f1b1/public/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
I, [2020-11-25T12:02:13.453156 #3686] INFO -- : Writing /tmp/build_6728f1b1/public/assets/home-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css
I, [2020-11-25T12:02:13.453335 #3686] INFO -- : Writing /tmp/build_6728f1b1/public/assets/home-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css.gz
webpack binstubs not found.
Have you run rails webpacker:install ?
Make sure the bin directory or binstubs are not included in .gitignore
Exiting!
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
SOLVED
Turns out bin/ is ignored by default in Rails.
Oddly enough, I still can't find the code which ignores bin/ for git; it doesn't look like it's in the main .gitignore
However, if you run
git add -f bin/webpack && git push heroku master # or main
everything should build.
I've been trying to run my nuxt app in docker and the build seem to work for the most part other than it keep missing core.js dependencie. I've tried adding core-js manually, babel, tried to run the suggested install command in the error, but to no help.
Dockerfile:
FROM node:12.2.0-alpine
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json /app/package.json
RUN yarn install
CMD ["yarn", "dev"]
Runtime nuxt build error:
ERROR Failed to compile with 53 errors
These dependencies were not found:
* core-js/modules/es6.array.find in ./.nuxt/client.js
* core-js/modules/es6.array.from in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es6.array.iterator in ./.nuxt/client.js
* core-js/modules/es6.date.to-string in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es6.function.name in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 2 others
* core-js/modules/es6.number.constructor in ./node_modules/babel-loader/lib??ref--2-0!./node_modules/#nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/ExperienceBarComponent.vue?vue&type=script&lang=js&
* core-js/modules/es6.object.assign in ./.nuxt/client.js
* core-js/modules/es6.object.keys in ./.nuxt/client.js, ./node_modules/babel-loader/lib??ref--2-0!./node_modules/#nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./components/MailComponent.vue?vue&type=script&lang=js& and 1 other
* core-js/modules/es6.object.to-string in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 3 others
* core-js/modules/es6.promise in ./.nuxt/client.js
* core-js/modules/es6.regexp.constructor in ./.nuxt/utils.js
* core-js/modules/es6.regexp.match in ./.nuxt/client.js
* core-js/modules/es6.regexp.replace in ./.nuxt/client.js, ./.nuxt/components/nuxt.js and 1 other
* core-js/modules/es6.regexp.search in ./.nuxt/utils.js
* core-js/modules/es6.regexp.split in ./.nuxt/utils.js, ./node_modules/babel-loader/lib??ref--2-0!./node_modules/#nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./.nuxt/components/nuxt-build-indicator.vue?vue&type=script&lang=js&
* core-js/modules/es6.regexp.to-string in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es6.string.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es6.string.iterator in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/es6.string.repeat in ./.nuxt/utils.js
* core-js/modules/es6.string.starts-with in ./.nuxt/utils.js
* core-js/modules/es6.symbol in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es7.array.includes in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es7.object.get-own-property-descriptors in ./.nuxt/index.js, ./static/svg/hearth.svg?inline
* core-js/modules/es7.promise.finally in ./.nuxt/client.js
* core-js/modules/es7.symbol.async-iterator in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js
* core-js/modules/web.dom.iterable in ./.nuxt/client.js, ./.nuxt/components/nuxt-link.client.js and 2 others
To install them, you can run: npm install --save core-js/modules/es6.array.find core-js/modules/es6.array.from core-js/modules/es6.array.iterator core-js/modules/es6.date.to-string core-js/modules/es6.function.name core-js/modules/es6.number.constructor core-js/modules/es6.object.assign core-js/modules/es6.object.keys core-js/modules/es6.object.to-string core-js/modules/es6.promise core-js/modules/es6.regexp.constructor core-js/modules/es6.regexp.match core-js/modules/es6.regexp.replace core-js/modules/es6.regexp.search core-js/modules/es6.regexp.split core-js/modules/es6.regexp.to-string core-js/modules/es6.string.includes core-js/modules/es6.string.iterator core-js/modules/es6.string.repeat core-js/modules/es6.string.starts-with core-js/modules/es6.symbol core-js/modules/es7.array.includes core-js/modules/es7.object.get-own-property-descriptors core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async-iterator core-js/modules/web.dom.iterable
Build log:
Deploying 'personalPortfolio Dockerfile: Dockerfile'...
Building image...
Preparing build context archive...
[==================================================>]94/94 files
Done
Sending build context to Docker daemon...
[==================================================>] 425,6kB
Done
Step 1/6 : FROM node:12.2.0-alpine
---> f391dabf9dce
Step 2/6 : WORKDIR /app
---> Running in 9d137ab94be2
Removing intermediate container 9d137ab94be2
---> 078262caa13f
Step 3/6 : ENV PATH /app/node_modules/.bin:$PATH
---> Running in 17e3b89345fc
Removing intermediate container 17e3b89345fc
---> b58f5e3e80c4
Step 4/6 : COPY package.json /app/package.json
---> 0d83547912ef
Step 5/6 : RUN yarn install
---> Running in c1f05fd932c4
yarn install v1.15.2
info No lockfile found.
[1/4] Resolving packages...
warning #nuxtjs/apollo > vue-cli-plugin-apollo > nodemon > chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning #nuxtjs/apollo > vue-cli-plugin-apollo > nodemon > chokidar > fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning #nuxtjs/apollo > vue-cli-plugin-apollo > nodemon > chokidar > braces > snapdragon > source-map-resolve > resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
warning #nuxtjs/apollo > vue-cli-plugin-apollo > nodemon > chokidar > braces > snapdragon > source-map-resolve > urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
warning #nuxtjs/style-resources > sass-resources-loader > #babel/cli > chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning nuxt > #nuxt/webpack > #nuxt/babel-preset-app > core-js#2.6.11: core-js#<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js#3.
warning nuxt > #nuxt/webpack > webpack > watchpack > watchpack-chokidar2 > chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning node-sass > request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning node-sass > node-gyp > request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[2/4] Fetching packages...
info fsevents#1.2.13: The platform "linux" is incompatible with this module.
info "fsevents#1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents#2.1.3: The platform "linux" is incompatible with this module.
info "fsevents#2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > #nuxtjs/apollo#4.0.0-rc9" has unmet peer dependency "apollo-cache-inmemory#^1.6.2".
warning "#nuxtjs/apollo > vue-apollo#3.0.3" has unmet peer dependency "apollo-client#^2.0.0".
warning "#nuxtjs/apollo > vue-apollo#3.0.3" has unmet peer dependency "apollo-link#^1.0.0".
warning "#nuxtjs/apollo > vue-apollo#3.0.3" has unmet peer dependency "graphql-tag#^2.10.1".
warning "#nuxtjs/apollo > vue-cli-plugin-apollo#0.21.3" has unmet peer dependency "#vue/cli-shared-utils#^3.0.0 || ^4.0.0-0".
warning "#nuxtjs/apollo > vue-cli-plugin-apollo > ts-node#8.10.2" has unmet peer dependency "typescript#>=2.7".
warning "#nuxtjs/markdownit > raw-loader#4.0.1" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/cli#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/helper-compilation-targets#7.10.2" has unmet peer dependency "#babel/core#^7.0.0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-async-generator-functions#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-dynamic-import#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-json-strings#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-class-properties#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-numeric-separator#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-nullish-coalescing-operator#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-object-rest-spread#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-optional-catch-binding#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-private-methods#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-optional-chaining#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-unicode-property-regex#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-async-generators#7.8.4" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-dynamic-import#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-nullish-coalescing-operator#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-json-strings#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-class-properties#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-numeric-separator#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-optional-chaining#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-optional-catch-binding#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-object-rest-spread#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-syntax-top-level-await#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-arrow-functions#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-async-to-generator#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-block-scoping#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-block-scoped-functions#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-computed-properties#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-destructuring#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-dotall-regex#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-classes#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-exponentiation-operator#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-duplicate-keys#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-literals#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-for-of#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-member-expression-literals#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-function-name#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-modules-amd#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-named-capturing-groups-regex#7.10.3" has unmet peer dependency "#babel/core#^7.0.0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-modules-systemjs#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-modules-umd#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-modules-commonjs#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-new-target#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-object-super#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-property-literals#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-regenerator#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-parameters#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-reserved-words#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-shorthand-properties#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-spread#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-sticky-regex#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-template-literals#7.10.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/preset-modules#0.1.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-typeof-symbol#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-unicode-escapes#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-transform-unicode-regex#7.10.1" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-unicode-property-regex > #babel/helper-create-regexp-features-plugin#7.10.1" has unmet peer dependency "#babel/core#^7.0.0".
warning "#nuxtjs/style-resources > sass-resources-loader > #babel/preset-env > #babel/plugin-proposal-class-properties > #babel/helper-create-class-features-plugin#7.10.3" has unmet peer dependency "#babel/core#^7.0.0".
warning "#nuxtjs/svg > vue-svg-loader#0.16.0" has unmet peer dependency "vue-template-compiler#^2.0.0".
warning "#nuxtjs/svg > url-loader#4.1.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning "#nuxtjs/svg > file-loader#6.0.0" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning "#nuxtjs/svg > vue-svg-loader > svg-to-vue#0.7.0" has unmet peer dependency "vue-template-compiler#^2.0.0".
warning "#nuxtjs/eslint-config > eslint-plugin-vue#5.2.3" has incorrect peer dependency "eslint#^5.0.0".
warning "#nuxtjs/eslint-config > eslint-plugin-vue > vue-eslint-parser#5.0.0" has incorrect peer dependency "eslint#^5.0.0".
warning "#nuxtjs/eslint-module > eslint-loader#4.0.2" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning " > sass-loader#8.0.2" has unmet peer dependency "webpack#^4.36.0 || ^5.0.0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 70.39s.
Removing intermediate container c1f05fd932c4
---> 3de73d894529
Step 6/6 : CMD ["yarn", "dev"]
---> Running in 818d77851c2f
Removing intermediate container 818d77851c2f
---> 1299c21f9593
Successfully built 1299c21f9593
Successfully tagged personal-portfolio:dev
Creating container...
Container Id: 670001ae3e42cde8c764a1c32c41ab2b516703a62172627371a504e34b2f3495
Container name: 'personalPortfolio'
Attaching to container 'personalPortfolio'...
Starting container 'personalPortfolio'
'personalPortfolio Dockerfile: Dockerfile' has been deployed successfully.
Command used to run the container:
docker build -t personal-portfolio:dev .
&& docker run
-p 3001:3000
-v D:\WindowsFolders\Desktop\Programming\Javascript\personalPortfolio:/app
--env NUXT_TELEMETRY_DISABLED=1
--name personalPortfolio
-v /app/node_modules
personal-portfolio:dev
I ran into this error the other day as well. There are two solutions: delete and reinstall all your node modules, or add this to your config file:
export default {
build: {
babel: {
presets({ isServer }) {
return [
[
require.resolve('#nuxt/babel-preset-app'),
// require.resolve('#nuxt/babel-preset-app-edge'), // For nuxt-edge users
{
buildTarget: isServer ? 'server' : 'client',
corejs: { version: 3 }
}
]
]
}
}
}
}
This had nothing to do with docker. I'm not sure how, but at some point reinstalling all the node modules installed the wrong core-js version.
Installing "core-js": "^2" seems to have solved it for now. Perhaps upgrading nuxt version would help too.
Now that I have resolved my issue with Ruby, the React part with webpacker is failing to load probably as below.
yarn install v1.21.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents#1.2.11: The platform "win32" is incompatible with this module.
info "fsevents#1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > #babel/preset-react#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-display-name#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-self#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx-source#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning "#babel/preset-react > #babel/plugin-transform-react-jsx > #babel/plugin-syntax-jsx#7.8.3" has unmet peer dependency "#babel/core#^7.0.0-0".
warning " > webpack-dev-server#3.10.1" has unmet peer dependency "webpack#^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware#3.7.2" has unmet peer dependency "webpack#^4.0.0".
[4/4] Building fresh packages...
Done in 71.58s.
Since I found this question while looking for the same problem, I will post my findings here as well.
Some background knowledge:
It are peer dependencies that are required here. Peer dependencies are dependencies that are not being installed when you run yarn or npm install. If you what to know more about peer dependencies and how the NPM package system work, read this article.
Node is using semantic versioning and this is explained here.
Now to this specific problem:
After reading the following issues on github:
Unmet babel core peer dependency
unmet peer dependency warnings using yarn
babel-core#^7.0.0-0 should be babel-core#^7.0.0-bridge.0
For me, I came to the conclusion I can ignore them since it seems to be a yarn bug not finding the correct package I have installed on my system. Never the less in case, I get problems at some point I need to do a closer deep dive into this. If this happens I will update the answer in the future.
I have been working on a react native project and I used expo-cli for that. After I had a working alpha version, I generated an android version and published it.
Now I am back working on it, and I couldn't add any packages and I think somehow I made it worse, by removing node_modules and running the command yarn install I got this error :
I couldn't post the stack trace because it is too long, but I created a gist containing the full stack trace : link
yarn install
yarn install v1.15.2
warning ../../../package.json: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
info #expo/traveling-fastlane-linux#1.9.3: The platform "darwin" is incompatible with this module.
info "#expo/traveling-fastlane-linux#1.9.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-darwin-ia32#2.2.8: The CPU architecture "x64" is incompatible with this module.
info "#expo/ngrok-bin-darwin-ia32#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-freebsd-ia32#2.2.8: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-freebsd-ia32#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-freebsd-ia32#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-freebsd-x64#2.2.8: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-freebsd-x64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-arm#2.2.8: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-linux-arm#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-arm#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-linux-arm64#2.2.8: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-linux-arm64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-arm64#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-linux-ia32#2.2.8: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-linux-ia32#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-linux-ia32#2.2.8: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-linux-x64#2.2.8: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-linux-x64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-sunos-x64#2.2.8: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-sunos-x64#2.2.8" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-win32-ia32#2.2.8-beta.1: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-win32-ia32#2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info #expo/ngrok-bin-win32-ia32#2.2.8-beta.1: The CPU architecture "x64" is incompatible with this module.
info #expo/ngrok-bin-win32-x64#2.2.8-beta.1: The platform "darwin" is incompatible with this module.
info "#expo/ngrok-bin-win32-x64#2.2.8-beta.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] 🔗 Linking dependencies...
warning " > #rhysforyou/react-native-carousel#0.1.1" has incorrect peer dependency "react#>=16.6".
warning "expo > expo-background-fetch#1.0.0" has unmet peer dependency "expo-task-manager-interface#~1.0.0".
warning "expo > expo-google-sign-in#2.0.0" has incorrect peer dependency "react-native#^0.55.4".
warning "expo > expo-location#2.0.1" has unmet peer dependency "expo-task-manager-interface#~1.0.0".
warning "expo > react-native-reanimated#1.0.0-alpha.11" has incorrect peer dependency "react#16.0.0-alpha.6".
warning "expo > react-native-reanimated#1.0.0-alpha.11" has incorrect peer dependency "react-native#^0.44.1".
warning "expo > expo-asset > url-loader#1.1.2" has unmet peer dependency "webpack#^3.0.0 || ^4.0.0".
warning "firebase > #firebase/database#0.3.17" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/firestore#1.1.3" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/functions#0.4.3" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/messaging#0.3.16" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/storage#0.2.12" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/auth > #firebase/auth-types#0.5.5" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/auth > #firebase/auth-types#0.5.5" has unmet peer dependency "#firebase/util#0.x".
warning "firebase > #firebase/database > #firebase/database-types#0.3.8" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/firestore > #firebase/firestore-types#1.1.1" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/functions > #firebase/messaging-types#0.2.8" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/storage > #firebase/storage-types#0.2.8" has unmet peer dependency "#firebase/app-types#0.x".
warning "firebase > #firebase/storage > #firebase/storage-types#0.2.8" has unmet peer dependency "#firebase/util#0.x".
warning " > react-native-maps#0.23.0" has unmet peer dependency "prop-types#^15.0 || ^16.0".
warning " > react-native-paper#2.15.0" has unmet peer dependency "react-native-vector-icons#*".
warning "react-native-paper > create-react-context#0.2.3" has unmet peer dependency "prop-types#^15.0.0".
warning "react-navigation > #react-navigation/native#3.3.0" has unmet peer dependency "react-native-gesture-handler#*".
warning "react-navigation > react-navigation-drawer#1.3.0" has unmet peer dependency "react-native-gesture-handler#^1.0.12".
warning "react-navigation > react-navigation-drawer#1.3.0" has unmet peer dependency "react-native-screens#^1.0.0 || ^1.0.0-alpha".
warning "react-navigation > react-navigation-stack#1.1.1" has unmet peer dependency "react-native-gesture-handler#^1.0.0".
warning "react-navigation > react-navigation-stack#1.1.1" has unmet peer dependency "react-native-screens#^1.0.0 || ^1.0.0-alpha".
warning "react-navigation > react-navigation-tabs#1.0.2" has unmet peer dependency "react-native-screens#^1.0.0 || ^1.0.0-alpha".
warning "react-navigation > #react-navigation/core > create-react-context#0.2.2" has unmet peer dependency "prop-types#^15.0.0".
[4/4] 🔨 Building fresh packages...
[1/5] ⠂ fsevents
[2/5] ⠂ iltorb
[-/5] ⠂ waiting...
[4/5] ⠂ grpc
....
If you take a look at the gist, you would think it is grp problem... the actual problem was node#12.
After I downgraded to node 11, I got everything back to normal.
(master) node -v 11.12