#How can the problem for this build error even be narrowed down?
1 messages · Page 1 of 1 (latest)
The situation:
- Upgrade Ember.js from v3.28.6 to v4.12.2
- Node.js v14.21.3
- devDependencies
"@babel/eslint-parser": "^7.23.3",
"@babel/plugin-proposal-decorators": "^7.23.5",
"@ember/jquery": "^1.1.0",
"@ember/optional-features": "^2.0.0",
"@ember/string": "^3.0.1",
"@ember/test-helpers": "^2.9.3",
"@glimmer/component": "^1.1.2",
"@glimmer/tracking": "^1.1.2",
"bootstrap": "^4.5.3",
"broccoli-asset-rev": "^3.0.0",
"concurrently": "^8.0.1",
"ember-ajax": "^5.0.0",
"ember-auto-import": "^2.7.0",
"ember-cli": "~4.12.2",
"ember-cli-app-version": "^6.0.0",
"ember-cli-babel": "^8.2.0",
"ember-cli-bootstrap-4": "^0.12.0",
"ember-cli-clipboard": "^0.16.0",
"ember-cli-dependency-checker": "^3.3.1",
"ember-cli-flash": "^4.0.0",
"ember-cli-htmlbars": "^6.2.0",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-moment-shim": "^3.8.0",
"ember-cli-sass": "^10.0.1",
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-cli-windows-addon": "^1.3.1",
"ember-data": "^4.12.4",
"ember-date-components": "^4.0.1",
"ember-fetch": "^8.1.2",
"ember-intl": "^5.6.0",
"ember-load-initializers": "^2.1.2",
"ember-math-helpers": "^2.15.0",
"ember-modifier": "^4.1.0",
"ember-moment": "^10.0.0",
"ember-page-title": "^7.0.0",
"ember-pikaday": "^3.0.0",
"ember-qunit": "^6.2.0",
"ember-resolver": "^10.0.0",
"ember-source": "~4.12.0",
"ember-template-lint": "^5.7.2",
"ember-truth-helpers": "^3.0.0",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-ember": "^11.5.0",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-qunit": "^7.3.4",
"loader.js": "^4.7.0",
"moment": "^2.29.4",
"numeral": "^2.0.6",
"popper.js": "^1.16.1",
"prettier": "^2.8.7",
"qunit": "^2.19.4",
"qunit-dom": "^2.0.0",
"sass": "^1.32.4",
"stylelint": "^15.4.0",
"stylelint-config-standard": "^32.0.0",
"stylelint-prettier": "^3.0.0",
"tracked-built-ins": "^3.1.1",
"webpack": "^5.89.0"
What I tried:
rm -rf node_modules && npm irm -rf node_modules && rm package-lock.json && npm i
The last issue I had was the same error, but with placeholder "SAMPLE_FEATURE_FLAG", which I nailed down to ember-data. After update this to ^4.12.4 the issue was gone. But "DEBUG" is so generic, I don't even know where to start looking.
I think the real issue might be your node version
https://github.com/ember-cli/ember-cli/blob/master/docs/node-support.md
this seems to suggest node 14 was supported through 5.0 but I don't recall that being true, I think we'd already passed the date and dropped it by then
at least for EmberData we'd stopped supporting node-14 at that point https://github.com/emberjs/data/blob/lts-4-12/.github/workflows/compat-tests.yml
https://github.com/emberjs/data/blob/79fc1e2467c3cf94b9069dbd27a3d5fcb18cda7a/package.json#L106
I'd start there because node 14 would likely cause a ton of issues
plus node-14 has been deprecated for a long time now
@livid oasis , thanks for the response.
I tried:
- update to Node.js v18.19.0
- deleting node_modules
- deleting the package-lock.json
- and re-install with
npm i
The issue stays the same: 😕
Build Error (broccoli-persistent-filter:Babel > [Babel: @embroider/macros]) in @embroider/macros/runtime.js
/home/dev/project/icst-webui/service/iCSTWebUI/@embroider/macros/runtime.js: @babel/template placeholder "DEBUG": Expected string substitutionError: @babel/template placeholder "DEBUG": Expected string substitution