Git Product home page Git Product logo

Comments (3)

kettanaito avatar kettanaito commented on June 11, 2024 1

Thanks for reporting this. I've opened a fix at mswjs/interceptors#286. Will publish today.

from headers-polyfill.

jtoar avatar jtoar commented on June 11, 2024

I work on RedwoodJS and our CI just ran into the same thing: https://github.com/redwoodjs/redwood/actions/runs/3059432181/jobs/4936841173#step:8:1264

We use MSW in the context of Storybook so the stack trace is a bit different, but the initial error is the same:

ModuleNotFoundError: Module not found: Error: Package path ./lib is not exported from package /Users/dom/prjcts/smoke-test-debug/node_modules/headers-polyfill (see exports field in /Users/dom/prjcts/smoke-test-debug/node_modules/headers-polyfill/package.json)
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/Compilation.js:2016:28
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:798:13
    at eval (eval at create (/Users/dom/prjcts/smoke-test-debug/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:10:1)
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:270:22
    at eval (eval at create (/Users/dom/prjcts/smoke-test-debug/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1)
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:434:22
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:116:11
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:670:25
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:855:8
    at /Users/dom/prjcts/smoke-test-debug/node_modules/webpack/lib/NormalModuleFactory.js:975:5

Downgrading to 3.0.10 fixes it.

from headers-polyfill.

aplr avatar aplr commented on June 11, 2024

It's an issue within mswjs/interceptors, therefore I've moved the issue to mswjs/interceptors#285

from headers-polyfill.

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.