Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

This Stencil app is disabled for this browser #67

Closed
peterennis opened this issue May 18, 2018 · 5 comments
Closed

This Stencil app is disabled for this browser #67

peterennis opened this issue May 18, 2018 · 5 comments
Labels

Comments

@peterennis
Copy link

Stencil version: (run npm list @stencil/core from a terminal/cmd prompt and paste output below):
0.9.1

I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

Current behavior:
Opens with unsupported IE

Expected behavior:
Open with a supported browser
OR
Command line info provided for open using Chrome or other browser

Steps to reproduce:
Build with npm start

Related code:

C:\ae\adaept.com\aepwa>npm start

> aepwa@0.0.1 start C:\ae\adaept.com\aepwa
> npm run dev


> aepwa@0.0.1 dev C:\ae\adaept.com\aepwa
> sd concurrent "stencil build --dev --watch" "stencil-dev-server"

[20:28.9]  @stencil/core v0.9.1
[20:28.9]  build, app, dev mode, started ...
[20:29.0]  compile started ...
[20:31.4]  compile finished in 2.39 s
[20:31.4]  module map started ...
[20:31.9]  module map finished in 507 ms
[20:32.7]  generate bundles started ...
[20:32.7]  generate bundles finished in 10 ms
[20:32.7]  generate app files started ...
[20:32.8]  compile global style start ...
[20:32.8]  compile global style finish in 3 ms
[20:32.8]  generate app files finished in 73 ms
[20:33.9]  build finished, watching for changes... in 4.94 s

Other information:
capture1454

@jgw96
Copy link
Contributor

jgw96 commented May 30, 2018

Hello! As the page says you need to run npm run dev --es5 to have dev builds work in IE11. By default we only do ES6 builds during dev to improve build times but this also means that dev builds will only work with modern browsers out of the box. Also i should re-iterate that production builds do both ES5 and ES6 builds, so production builds will work fine in IE11 out of the box. Thanks for using the Ionic PWA Toolkit!

@jgw96 jgw96 closed this as completed May 30, 2018
@dacrypt
Copy link

dacrypt commented Feb 12, 2019

I'm experiencing this issue with a production build (ionic4 + capacitor)

  1. ionic build --prod
  2. Open it in firefox
  3. This Stencil app is disabled for this browser.

@asimlqt
Copy link

asimlqt commented Feb 21, 2019

I'm also getting this message in firefox 65.0.1 after running npm start using the stencil component template.

@janwirth
Copy link

janwirth commented Mar 3, 2019

dev builds will only work with modern browsers out of the box

Firefox version 65 is not a modern browser? 🙉

@Lebby
Copy link

Lebby commented Mar 6, 2019

TL;DR:)
Common Information:
Browser: FF 65
Ionic: 4.0.0
npm list @stencil/core: @stencil/core@0.17.0
npm --version: 6.8.0

Short Solution Descriptiont:
A workaround is to add "dev" : "stencil build --dev --es5 --watch --serve", in package.json:

scripts: 
{
 ...
    "dev" : "stencil build --dev --es5 --watch --serve",
...
}

So you can run:

npm run dev

Note:
I think that the key is the missing flag --es5 on commands

Long Description
Same issue "This Stencil app is disabled for this browser".
Step to reproduce:

  1. npx create-stencil ionic-pwa
  2. Input project name
  3. start project by:
cd project-name
npx create-stencil ionic-pwa
  1. It opens FF and shows same page as This Stencil app is disabled for this browser #67 (comment)
    Relevant Details is:
Current Browser's Support:

    ES Module Imports: true
    ES Dynamic Imports: false
    Custom Elements: true
    Shadow DOM: true
    fetch: true
    CSS Variables: true

Current Browser:

    Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0  
  1. I followed the This Stencil app is disabled for this browser #67 (comment) istructions:
npm run dev --es5

but i have :

npm ERR! missing script: dev

How I "patched":
I opened package.json created by the step 1

{
  "name": "project-name",
  "private": true,
  "version": "0.0.1",
  "description": "project-name",
  "license": "MIT",
  "files": [
    "dist/"
  ],
  "scripts": {
    "build": "stencil build",
    "start": "stencil build --dev --watch --serve",
    "test": "stencil test --spec --e2e",
    "test.watch": "stencil test --spec --e2e --watch"
  },
  "dependencies": {
    "@ionic/core": "4.0.0"
  },
  "devDependencies": {
    "@stencil/core": "0.17.0"
  }
}

I recognized that maybe, the target dev is missing and i added the line:

 "dev" : "stencil build --dev --es5 --watch --serve",

So The result package.json is:

{
  "name": "project-name",
  "private": true,
  "version": "0.0.1",
  "description": "project-name",
  "license": "MIT",
  "files": [
    "dist/"
  ],
  "scripts": {
    "build": "stencil build",
    "start": "stencil build --dev --watch --serve",
    "dev" : "stencil build --dev --es5 --watch --serve",
    "test": "stencil test --spec --e2e",
    "test.watch": "stencil test --spec --e2e --watch"
  },
  "dependencies": {
    "@ionic/core": "4.0.0"
  },
  "devDependencies": {
    "@stencil/core": "0.17.0"
  }
}

Now if I run:

npm run dev

it "works" and show the correct page, hope it helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants