Issue 1:
Bug Report

I'm trying to deploy a React SPA within a docker container, served through a python Flask app.

I'm starting here by asking people on Babel, because I think it might be something to do with the way I've set up babel, but I guess it could just as easily be an issue with Parcel or something else.

Current Behavior

When using parcel build to bundle an app, I get the following error:

🚨 Cannot find module '@babel/highlight'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15)
at Function.Module._load (internal/modules/cjs/loader.js:535:25)
at Module.require (internal/modules/cjs/loader.js:663:17)
at require (/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
at _highlight (/node_modules/@babel/code-frame/lib/index.js:10:40)
at codeFrameColumns (/node_modules/@babel/code-frame/lib/index.js:98:21)
at JSAsset.generateErrorMessage (/node_modules/parcel-bundler/src/assets/JSAsset.js:277:23)
at Bundler.throwDepError (/node_modules/parcel-bundler/src/Bundler.js:521:19)
error Command failed with exit code 1.

Input Code

The relevant parts of my dockerfile are as follows:

FROM python:3.6.8

RUN apt-get update
RUN apt-get install -y apt-transport-https apt-utils

RUN alias node=nodejs \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee \
/etc/apt/sources.list.d/yarn.list \
&& curl -sL https://deb.nodesource.com/setup_11.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs yarn

RUN yarn global add parcel-bundler

COPY requirements.txt /
RUN pip install -r requirements.txt

COPY .babelrc /
COPY package.json /
COPY yarn.lock /

COPY test/ /test/
COPY app/ /app/

COPY client/ /client/

RUN yarn install && yarn list | grep @babel && yarn run parcel build client/*.html

EXPOSE 5000:5000

CMD ["python", "-um", "app.main"]

Expected behavior/code

A clear and concise description of what you expected to happen (or code).

Babel Configuration (.babelrc, package.json, cli command)

{
"name": "app",
"version": "1.0.0",
"main": "client/index.js",
"dependencies": {
"adal-angular": "^1.0.17",
"axios": "^0.18.0",
"azure-storage": "^2.10.2",
"bloomer": "^0.6.5",
"eslint-config-google": "^0.11.0",
"global": "^4.3.2",
"lodash": "^4.17.11",
"node": "^11.6.0",
"node-sass": "^4.10.0",
"parcel-bundler": "^1.10.3",
"prop-types": "^15.6.2",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-table": "^6.8.6",
"reactjs-popup": "^1.3.2",
"request": "^2.34",
"request-promise-native": "^1.0.5",
"uuid": "^3.3.2"
},
"devDependencies": {
"@babel/highlight": "^7.0.0",
"babel-code-frame": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"bulma": "^0.7.2",
"eslint": "^5.12.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.3",
"prettier": "^1.15.3",
"sass": "^1.15.3"
},
"scripts": {
"start": "parcel client/*.html -p 3000",
"build": "parcel build client/*.html"
}
}

Environment

Babel version(s):

Node/npm version: Node 11.9 (same issue on node 10.11)/Yarn 1.13

OS: Running in a docker container in Ubuntu

Monorepo: [e.g. yes/no/Lerna]

How you are using Babel: [e.g. cli, register, loader]

Issue 2:
Issue originally made by Dave Thompson (dave.w.thompson)

Bug information

Babel version: 6.13.0

Node version: 6.2.1

npm version: 3.9.3

Options

npm install --save babel-core babel-loader babel-preset-es2015 babel-preset-es2016 babel-preset-react

Input code

(no code)

Description

npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:\Dev\Apps\nodejs32\node.exe" "C:\Dev\Apps\nodejs32\node_modules\npm\bin\npm-cli.js" "install" "--save" "babel-core" "babel-loader" "babel-preset-es2015" "babel-preset-es2016" "babel-preset-react"

npm ERR! node v6.2.1

npm ERR! npm v3.9.3

npm ERR! No compatible version found: babel-traverse@^6.13.0

npm ERR! Valid install targets:

npm ERR! 6.12.0, 6.11.4, 6.10.4, 6.9.0, 6.8.0, 6.7.6, 6.7.5, 6.7.4, 6.7.3, 6.7.2, 6.7.0, 6.6.5, 6.6.4, 6.6.3, 6.6.2, 6.6.0, 6.5.0, 6.5.0-1, 6.4.5, 6.3.26, 6.3.25, 6.3.24, 6.3.21, 6.3.19, 6.3.17, 6.3.16, 6.3.15, 6.3.14, 6.3.13, 6.3.2, 6.2.4, 6.2.0, 6.1.20, 6.1.18, 6.1.17, 6.1.4, 6.1.2, 6.0.20, 6.0.19, 6.0.18, 6.0.17, 6.0.16, 6.0.14, 6.0.2

npm ERR!

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:

npm ERR! [redacted]\npm-debug.log