Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development in IE11 impossible (Blank page) #217

Closed
EvertVerboven opened this issue Dec 22, 2017 · 1 comment
Closed

Development in IE11 impossible (Blank page) #217

EvertVerboven opened this issue Dec 22, 2017 · 1 comment
Labels
bug A bug-report

Comments

@EvertVerboven
Copy link

Is this a bug report?

Yes

Environment

  1. node -v: v8.4.0
  2. npm -v: 5.6.0
  3. yarn --version (if you use Yarn): 0.27.5
  4. npm ls create-elm-app -g (if you haven’t ejected): 1.10.1

Then, specify:

  1. Operating system: MacOS Sierra 10.12.6 (Development) / Win7 Virtual Machine
  2. Browser and version (if relevant): IE11 11.0.9600 In virtual machine

Steps to Reproduce

When starting the development server, and visiting 10.0.2.2:3000 in a windows virtual machine IE11 browser (maps to localhost:3000) on the actual machine a blank page shows up.

In the console the error

(Write your steps here:)

  1. $ create-elm-app foo
  2. $ cd foo
  3. $ elm-app start
  4. visit 10.0.2.2:3000 in IE11 on windows virtual machine
  5. see blank page, inspect, reload to see error

Expected Behavior

I woud expect to see the create-elm-app initial page Your elm app is working

Actual Behavior

A blank page appears with an error in the console

screen shot 2017-12-22 at 13 36 06
screen shot 2017-12-22 at 13 36 17

Reproducible Demo

I did not include a demo since the issue appears immediately after creating a new elm-app.

@halfzebra halfzebra added the bug A bug-report label Dec 29, 2017
@kspeakman
Copy link

kspeakman commented Jan 19, 2018

I have this same problem. It is because the dev config does not convert some arrow functions into classic functions. IE11 cannot use ES6 arrow functions. Maybe some module is getting included after the normal build process?

Edit: Appears to do with the chalk module dependency ansi-styles, which is the source code IE chokes on.

/***/ "./node_modules/ansi-styles/index.js":
/*!*******************************************!*\
  !*** ./node_modules/ansi-styles/index.js ***!
  \*******************************************/
/*! dynamic exports provided */
/*! all exports used */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(module) {
const colorConvert = __webpack_require__(/*! color-convert */ "./node_modules/color-convert/index.js");

const wrapAnsi16 = (fn, offset) => function () {
	const code = fn.apply(colorConvert, arguments);
	return `\u001B[${code + offset}m`;
};

This makes it hard to test in IE during dev. The production build does appear to load in IE.

halfzebra added a commit that referenced this issue Aug 6, 2018
…grade Babel setup and enable tr

More context in: facebook/create-react-app#3776

BREAKING CHANGE: Now we compile third-party JavaScript code with Babel.

fix #217
halfzebra added a commit that referenced this issue Aug 6, 2018
…grade Babel setup and enable transpilation of third-party code

More context in: facebook/create-react-app#3776

BREAKING CHANGE: Now we compile third-party JavaScript code with Babel.

fix #217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug-report
Projects
None yet
Development

No branches or pull requests

3 participants