Skip to content
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

Module parse failed: Unexpected token (1:111) #2

Closed
micrem73 opened this issue Feb 1, 2023 · 1 comment
Closed

Module parse failed: Unexpected token (1:111) #2

micrem73 opened this issue Feb 1, 2023 · 1 comment

Comments

@micrem73
Copy link

micrem73 commented Feb 1, 2023

Running ng serve I get an error:

ERROR in ./src/environments/environments 1:111
Module parse failed: Unexpected token (1:111)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
export const environment = { OPEN_AI_KEY:-------, OPEN_AI_URL:https://api.openai.com/v1/completions, };

(i deleted my real key here, but the error shows it).

Any idea?
Thanks

@micrem73
Copy link
Author

micrem73 commented Feb 1, 2023

Solved. I had a "environment" file inside, without extension, I simply deleted it

@micrem73 micrem73 closed this as completed Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant