-
-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token #265
Comments
This is just a check to see if you're running in development mode (which is useful for me) - but this won't affect you.
Regarding this error, could you note what version of node and npm you are using? Also, I am aware of people that use |
node v16.17.0 , npm 8.15.0 .... yes I am using CRA, I think, I'm extending another project and I assume it was built with create-react-app, but I don't have react-scripts in my package.json, so idk. |
I would advise that you update to node >= 18.x (v16 is reaching EOL soon) and use Vite instead of CRA. I don't think I will be adding support for these older versions. |
It works in Vite with node 18 and npm 8.... now I just have to port my project over to it i guess |
I added this code to my React project.
I am surprised the docs don't tell me to download a model, so I think this code will auto-download it... anyway I get this issue...
./node_modules/@xenova/transformers/src/env.js 38:84
Module parse failed: Unexpected token (38:84)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
|
| var RUNNING_LOCALLY = FS_AVAILABLE && PATH_AVAILABLE;
Seems like I need access to the filesystem... but that can't be right because this runs in the browser ... ?
The text was updated successfully, but these errors were encountered: