Comments (7)
What's the error message?
from service-mocker.
The error is in my own code:
Uncaught TypeError: Cannot read property 'number' of undefined
I am just not able to see it unless I close and reopen the inspector.
from service-mocker.
Sorry I couldn't reproduce this issue with my own code. Would you be so kind as to create a repo that reproduce this issue?
from service-mocker.
well it is something that is hard to reproduce, I cleared my cache (which seemly got rid of the error that was happening and now I am see error in the inspector.
I seem to be getting errors when my code is fine and the only thing I can think of in that I am using webpack to generate my server.js file using this config:
{
module: {
loaders: [{
test: /\.js$/,
loader: 'babel',
exclude: [
path.resolve(__dirname, "node_modules")
],
query: {
presets: ['react', 'es2015-without-strict-loose'],
plugins: ['static-fs']
}
}, {
test: /\.json$/,
loader: 'json-loader'
}]
},
entry: {
'/javascript/mocker/server': './web/app/mocker/server.js'
},
devtool: ['source-map'],
output: {
path: './web/build',
publicPath: '/build',
filename: '[name].js'
}
}
Is there any reason why I would not be able to use webpack to build my server.js file?
from service-mocker.
well the second time was my fault though not sure about the original issue I reported. I have noticed weird flaky issues when I have had errors my my server.js code and just wanted to mention it (clearer the cache enough times seems to fix it). I know it is hard to debug and flaky issue so I guess you can just close this and then I can re-open / open another if I am able to more reliability able to re-produce the issue.
from service-mocker.
Ah, I got this issue too.
This is because the error is fired during last run. Once the page is reloaded, you won't see the error again unless you repeat the same action that caused it. In other words, the error you see after reopening console in chrome is a kind of outdated message which is not relative to current window context, chrome throws it again just for debugging purpose. You can switch to the Application
tab of chrome dev tool to see all error messages in current service worker context.
You can imagine it like you get a runtime error in console (maybe by clicking a button), then you reload the page and the error message is gone because you haven't fired it.
I think we might have nothing to do with this issue, it's just a supposed behavior in chrome as well as other browsers which support service workers. If you retry the same action that causes the failure, you will be able to see it right away in console.
Update: Firefox doesn't seem to throw the old error message after reopening console.
from service-mocker.
A screencast reproduces this issue:
from service-mocker.
Related Issues (20)
- Integration with CRA? HOT 16
- Chainable baseURL HOT 8
- ngc+AOT+webpack - compile error HOT 3
- Don't put typings as dependencies HOT 11
- Project Phoenix - roadmap of ver. 2
- Hanging in chrome after reloading
- Problems with basinc routing HOT 7
- Auto reload with webpack HOT 9
- Wildcard URL param doesn't treat well empty param HOT 4
- Add middlewares into the server HOT 19
- createClient(scriptURL).ready does not resolve at root / HOT 8
- Unhandled Promise rejection: Unable to get property 'length' of undefined or null reference ; HOT 4
- Remove hash tags (#) from URL HOT 1
- Support a catch all handler
- Serious bug with route matching with nested routes
- Docs website is broken HOT 2
- Use in browser directly
- Browserify example
- Is this project still active? HOT 1
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 service-mocker.