Open andresuchitra opened 1 year ago
There is something broken in your eslint-plugin-import
setup.
This seems to be the same root cause than #1161, see https://github.com/testing-library/user-event/issues/1161#issuecomment-1781575530, maybe it will help.
Reproduction example
https://codesandbox.io/s/loving-archimedes-vvcdt3
Prerequisites
Expected behavior
No VS code error or
import/namespace
error appearedActual behavior
Error in VSCODE:
User-event version
14.5.1
Environment
Testing Library framework:
14.5.1
JS framework:
vue@2.6.14, nuxt@2.15.8
Test environment:
"jest": "27.4.5"
JS DOM:
Additional context
I have vue, nuxt, and
@testing-library/vue
project, and after running:yarn add --dev @testing-library/user-event
the setup below works in my test running:
However, I can't do build / run the dev due to error in the title above. I'm using VSCODE. But I can successfully run and simulate the
userEvent.paste()
call.Please help how to fix the import error.
Thanks!