Hello everyone,
I’m trying to deploy angular app but I’m having this issue.
The build folder is in dist/defi but the error tellme to change it to /dist/defi/browser.
& when I perform this change, I’m having an error which says that the folder /dist/defi/browser does not exists…
Can someone help me please?
Plugin “@netlify/angular-runtime” failed
11:04:50 PM: ────────────────────────────────────────────────────────────────
11:04:50 PM:
11:04:50 PM: Error message
11:04:50 PM: Error: Publish directory is configured incorrectly. Please set it to “dist/defi/browser”.
11:04:50 PM:
11:04:50 PM: Plugin details
11:04:50 PM: Package: @netlify/angular-runtime
11:04:50 PM: Version: 2.0.2
11:04:50 PM: Repository: git+https://github.com/netlify/angular-runtime.git
11:04:50 PM: npm link: @netlify/angular-runtime - npm
11:04:50 PM: Report issues: Issues · netlify/angular-runtime · GitHub
11:04:50 PM:
11:04:50 PM: Error location
11:04:50 PM: In “onPreBuild” event in “@netlify/angular-runtime” from Netlify app
11:04:50 PM:
11:04:50 PM: Resolved config
11:04:50 PM: build:
11:04:50 PM: command: ng build
11:04:50 PM: commandOrigin: config
11:04:50 PM: publish: /opt/build/repo/dist/defi
11:04:50 PM: publishOrigin: config
11:04:50 PM: plugins:
11:04:50 PM: - inputs: {}
11:04:50 PM: origin: ui
11:04:50 PM: package: “@netlify/angular-runtime”
11:04:50 PM: redirects:
11:04:50 PM: - from: /*
status: 200
to: /index.html
redirectsOrigin: config
11:04:50 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:04:50 PM: Failing build: Failed to build site
11:04:50 PM: Finished processing build request in 39.376s






