Module /..../node_modules/@popperjs/core/lib/modifiers/flip.js:1 seems to be an ES Module but shipped in a CommonJS package. You might want to create an issue to the package "@popperjs/core" asking them to ship the file in .mjs extension or add "type": "module" in their package.json
Getting the above error while running test cases using vitest.
Although vitest says there’s one temporary workaround, but seems like even that isn’t working
Workaround provided:
// vitest.config.js
export default {
test: {
server: {
deps: {
inline: [
"@popperjs/core"
]
}
}
}
}```
I tried adding the workaround but that didn't seem to work.
`@popperjs/core` is widely used in our project and this is blocking us from running test cases.