Comments (5)
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!
from ionic-pwa-toolkit.
I'm experiencing this issue with a production build (ionic4 + capacitor)
- ionic build --prod
- Open it in firefox
This Stencil app is disabled for this browser.
from ionic-pwa-toolkit.
I'm also getting this message in firefox 65.0.1 after running npm start
using the stencil component template.
from ionic-pwa-toolkit.
dev builds will only work with modern browsers out of the box
Firefox version 65 is not a modern browser? 🙉
from ionic-pwa-toolkit.
TL;DR:)
Common Information:
Browser: FF 65
Ionic: 4.0.0
npm list @stencil/core: @stencil/[email protected]
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:
- npx create-stencil ionic-pwa
- Input project name
- start project by:
cd project-name
npx create-stencil ionic-pwa
- It opens FF and shows same page as #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
- I followed the #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!
from ionic-pwa-toolkit.
Related Issues (20)
- Failing unit tests in master
- Missing types for Ionic components HOT 1
- Main PWA site is charged to left
- Add variables
- npm start is not working HOT 1
- Routing is slow at first when hosted on the web (Firebase) HOT 1
- service worker - not being generated HOT 1
- CSS Utils don't work inside the project
- Needs upgrade to Ionic v6
- ionic-pwa starter option does not produce a service worker file.
- The iphone x emulator menu does not work.
- Profile page 404 when deployed, works on localhost HOT 1
- Demo: AppHome loaded twice HOT 1
- Can't import ES2015 modules
- what is the difference between ionic-pwa-toolkit and ionic 4 + service worker enabled? HOT 5
- npm start.sw missing script HOT 3
- Remove transparency for iOS App Icon
- Routing library inconsistently described
- Stencil 0.7.0 with ionic/core 4.0.0 don't work HOT 1
- Host styling not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-pwa-toolkit.