Mike
Using type aware `typescript-eslint` rules with nuxt eslint module
I'm trying to use the rule
@typescript-eslint/no-unnecessary-condition
. However when I add it to my eslint config, i get this error:
My eslint config looks like this:
I have tried prepending parserOptions
like this:
So basically: How do I forward parserOptions to typescript-eslint/parser?1 replies
How do I find origin of node module warnings?
Hello!
When I start my app I get 4 console errors like this:
I've set
"type": "module"
in my package.json so I suspect this warning is coming from a dependency. However I don't know how to find which dependency. Is there a better way than removing dependencies one by one to find the culprit?
I've tried running the app with NODE_OPTIONS='--trace-warnings' pnpm dev
but this doesn't make a difference3 replies
Adding a watcher inside `useAsyncData`
Hi.
I've wrapped
useAsyncData
in order to add some error handling:
However now I want to submit an error to sentry in case of errors. If I use error.value
inside myAsyncData
, i'll lose reactivity so I don't want to do that.
However I can add a watcher on error and that seems to work:
However something about this approach seems wrong to me. Is using a watcher like this bad practice? If not, do I need to manually unsubscribe the watcher on unMount? Is there a better way to do this?3 replies
Using multiple workers causes project to be repeatably built despite using `server:true`
I am using Playwright and nuxt test utils. My playwright config looks like this:
I've set
server: true
to reuse the same server. However if i set workers > 1, the project is rebuilt and a new dev server is started in each worker. This causes an issue, since port 4001 is already in use after the first worker has been started. Thus the tests fail when using multiple workers. Also it just seems wasteful to rebuild the whole project in each worker.
Is this expected behaviour? If so is there a way i can reuse the build and dev server on all workers?
If not, should I create an issue?2 replies