Git Product home page Git Product logo

vitest-panic-reproduction's Introduction

Vitest panic

This repository is a minimal reproduction repo for an error in Vitest.

Run the tests:

npm run test

You get this error:

Error: panic: interface conversion: interface {} is map[string]interface {}, not []uint8

debug.Stack (runtime/debug/stack.go:24)
helpers.PrettyPrintedStack (internal/helpers/stack.go:9)
main.(*serviceType).handleIncomingPacket.func1 (cmd/esbuild/service.go:269)
panic (runtime/panic.go:884)
main.(*serviceType).handleTransformRequest (cmd/esbuild/service.go:980)
main.(*serviceType).handleIncomingPacket (cmd/esbuild/service.go:285)
main.runService.func4 (cmd/esbuild/service.go:192)
created by main.runService (cmd/esbuild/service.go:191)
 ❯ node_modules/esbuild/lib/main.js:801:29
 ❯ responseCallbacks.<computed> node_modules/esbuild/lib/main.js:680:9
 ❯ handleIncomingPacket node_modules/esbuild/lib/main.js:733:9
 ❯ Socket.readFromStdout node_modules/esbuild/lib/main.js:656:7
 ❯ Socket.emit node:events:514:28

If you remove jsdom as environment from the vitest.config.js, the error disappears. If you downgrade Vitest from 0.34.5 to 0.34.2, the error disappears also.

vitest-panic-reproduction's People

Contributors

vekunz avatar

Watchers

 avatar

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.