Coder Social home page Coder Social logo

Comments (10)

lukeed avatar lukeed commented on July 23, 2024 2

You likely have a service worker still running from a previous project. Clear service workers from within chrome devtools (application > service workers) and then hard reload the page.

This happens to me every once in a while.

from create-inferno-app.

Havunen avatar Havunen commented on July 23, 2024

Thanks for reporting this issue! I will look into it.

from create-inferno-app.

Havunen avatar Havunen commented on July 23, 2024

Hey @hulkish what should I do to reproduce the issue in your github repository?

What I tried so far:
I clone the repository.
I did npm i
I ran npm run start -> browser opened localhost:3000 (basic example renderd, no errors in console)
I ran npm run build I got info that production build was successfully made

from create-inferno-app.

hulkish avatar hulkish commented on July 23, 2024

@Havunen For me, I just run:

npm install
npm start

No errors during build and it seems like its working - however in the browser is where the error occurs

... what version of node are u using? i wonder if its. because of the version im using

from create-inferno-app.

hulkish avatar hulkish commented on July 23, 2024

I just tried this again with a different version of node (6.9.3) and got the same (error'd) behavior as I originally reported

from create-inferno-app.

Havunen avatar Havunen commented on July 23, 2024

I previously tried with nodeJS 7.3.0 and npm 4.0.5 on my linux stack. I will try with windows machine nodeJS 7.4.0 now.

from create-inferno-app.

Havunen avatar Havunen commented on July 23, 2024

What I have tried so far:

git clone https://github.com/hulkish/inferno-test-2.git
npm install (wait until its ready)
npm start
- open Google Chrome v55 64bit  localhost:3000 (no errors in console)
- open FireFox v50.1.0  localhost:3000 (no errors in console)
- open Microsoft EdgeHTML 14.14393  localhost:3000 (no errors in console)
- open Internet Explorer 11.576  localhost:3000 (no errors in console)

npm test (test runner starts 1 test pass)
I tried editing Inferno text in source and it reflect into the browser also. (hot reloading)

npm -v 4.0.5
node -v 7.4.0 
windows 10 build 1607

I have also tried to reproduce this on my Linux stack no luck... what am I doing wrong?

from create-inferno-app.

Havunen avatar Havunen commented on July 23, 2024

I started browsing upstream repository and do you think any of these is related?:
facebook#658

Also now when I'm reading your description I noticed this line:
sw.js:1 The script has an unsupported MIME type ('text/html').
http://localhost:3000/sw.js Failed to load resource: net::ERR_INSECURE_RESPONSE

but I don't see sw.js anywhere loaded

from create-inferno-app.

hulkish avatar hulkish commented on July 23, 2024

@lukeed yep, that was it! That is a pretty sneaky one.. will definitely be making note of that lol

from create-inferno-app.

LukeSheard avatar LukeSheard commented on July 23, 2024

Closing this then. 👍

from create-inferno-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.