Unable to load plugin on NextJS 12.3.3
h2oearth opened this issue · 2 comments
h2oearth commented
I tried every available release of your plugin, and I have the same error message when I start my app. Am I missing something?
This is my configuration.
experimental: {
swcPlugins: [['swc-plugin-coverage-instrument', {}]],
},
This is the error that I get when I starts my app
Caused by:
0: Failed to create plugin instance
1: Error while importing "env"."__lookup_char_pos_source_map_proxy": incompatible import type. Expected Function(FunctionType { params: [I32, I32], results: [I32] }) but received Function(FunctionType { params: [I32, I32, I32], results: [I32] })', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.226.26/src/plugin.rs:216:14
error - ./node_modules/next/dist/client/dev/amp-dev.js
Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/dodo/wrk/my-project/node_modules/next/dist/client/dev/amp-dev.js")'
h2oearth commented
Like I said I tried ALL the versions and have the same result