Comments (10)
Hi @jgierer12, thanks for reporting this issue!
Are you using the testing
option with tape
as a value?
from log-process-errors.
No, I'm not using any custom config at all.
from log-process-errors.
Thanks. Are you using register/tape
? https://github.com/ehmicky/log-process-errors/blob/master/docs/API.md#testing
from log-process-errors.
Nope, nothing test-related at all actually. Only a sibling Yarn workspace but outside the scope of the relevant package is using Jest.
from log-process-errors.
Ok so some background: the testing
option is making unit tests fail when a process error is raised.
Each test runner works differently. For tape
, I create a failing test using require('tape').test('..', t => t.error(error))
. require('tape')
is dynamically required and supposed to only be performed when the testing
option is set to tape
.
If you have a minimal reproduction demo, I would love to fix this bug, because this might impact other users with the same setup. Thanks!
from log-process-errors.
@jgierer12 Did you manage to reproduce it in a more minimal setup? Thanks!
from log-process-errors.
No, sorry, I tried for a while but didn't manage to reproduce this in a setup which I would be able to publish
It must have something to do with the other dependencies I'm using, since I haven't been able to reproduce just with workspaces + netlify-lambda. On the upside, that probably makes it obscure enough for few other people to run into.
from log-process-errors.
Does it work if you uninstall tape
? If not, could you please edit node_modules/log-process-errors/build/src/options/runners.js
and add a console.trace()
just before require('tape')
? Like this you might get a better stack trace of what is calling that function.
from log-process-errors.
@jgierer12 if you could check this, this would help me fix this problem potentially for some users. Thanks!
from log-process-errors.
Closing but @jgierer12 feel free to comment.
from log-process-errors.
Related Issues (11)
- [BUG] Not compatible with Node 6 HOT 1
- Why isn't this in core? HOT 3
- Processing version 3.5.4 - A Serious Error Happened During Startup
- Remove (seemingly) unused core-js dependency HOT 4
- 5.1.0 marked as latest in npm HOT 2
- 6.1.0 - Errors when ExperimentalWarning is caught HOT 3
- How do I use this to log an error that I have already caught? HOT 2
- `Error [ERR_REQUIRE_ESM]: Must use import to load ES Module`
- Why not raise the core console.log problems to node.js? HOT 1
- Casing change in 10.0.0 release notes 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 log-process-errors.