Yarn can't see my environment files

56 views
Skip to first unread message

Mathieu Pelletier

unread,
Aug 17, 2021, 8:02:40 AM8/17/21
to DSpace Technical Support
Hi All,
I had successfully installed Dspace 7, but now as I am trying to customize my theme, I am getting the following warning in the build:

Building development environment

No specific environment file found for --dev

Angular environment.ts file generated correctly at ./src/environments/environment.ts 

It does this for production as well, but both files are there in the src/environments/.  Why can't yarn find my files? Even if I chmod to 777 it does not work, so it can't be a permissions problem.

Any ideas?

Mathieu Pelletier

unread,
Aug 17, 2021, 8:25:36 AM8/17/21
to DSpace Technical Support
Okay, so I am going to answer my own question here.  Seems like I had a syntax error in my environment file.  It would have been helpful if Yarn reported that there was a problem. :-/

Gavin Spomer

unread,
Sep 24, 2021, 5:31:16 PM9/24/21
to DSpace Technical Support
Hi, I'm having this same issue (except with prod, not dev). Do you remember what the syntax error was? My environment.prod.ts file is in the src/environments/ directory, has the same permissions as environment.common.ts and looks downright perfect to me, LOL:

2021-09-24_13-57-09.png

 - Gavin

Reply all
Reply to author
Forward
0 new messages