Within my project files, there is a .env file present
-public
-src
-.env.development.local
In the package.json file, it contains:
{
"name": "my-website",
"version": "0.1.0",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build --mode development",
"lint": "vue-cli-service lint"
}
}
The initial run of npm run build
is successful.
However, subsequent runs result in an error:
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f99480d48e9c9b8a908d9cb9c9d7c8d7c9">[email protected]</a> build: `vue-cli-service build --mode development`
Upon further investigation within the logs,
13 verbose stack Error: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c2afbbefb5a7a0b1abb6a782f2ecf3ecf2">[email protected]</a> build: `vue-cli-service build --mode development`
13 verbose stack Exit status 1
Strangely enough, deleting the public
folder resolves the issue