#SyntaxError: Unexpected identifier

1 messages · Page 1 of 1 (latest)

sterile valley
#

I inserted react-router-dom in my ViteJS/React code, got unexpected error.
It turns out that an internal error occurred in the Vite files:

    const transformResult = m i await pluginContainer.transform(code, id, {
                              ^

SyntaxError: Unexpected identifier```

I am a Portuguese Speaker, so dont use slangs/abbreviations pleaseee
#

PS: The SyntaxError it is not ( not this one at least ) in the documentation of common errors

sterile valley
#

I tried reinstalling the "vite" package and updating the packages with npm update but still no result