0๐
โ
I found out that my error was caused by my eslintrc
configuration. So I just had to add this in the .eslintrc.json
(in the root of my src
folder):
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
So now I am able to import the js module
Source:stackexchange.com