ember-learn/ember-cli-addon-docs

New error: @babel/template placeholder "ADDON_DOCS_DEPLOY_VERSION": Expected string substitution

csprocket777 opened this issue · 2 comments

Since yesterday, the my builds have been failing because of a specific error:

/[...projectFolderPath...]/@embroider/macros/runtime.js: @babel/template placeholder "ADDON_DOCS_DEPLOY_VERSION": Expected string substitution

I'm using ember-cli-addon-docs@4.2.2.

How do I resolve this? How do I troubleshoot this?

@csprocket777 could you please check if you experience the issue described in FortAwesome/ember-fontawesome#194 and embroider-build/embroider#1077 by checking in your lock file if any @embroider/macros < 1.0.0 present in your tree?

A number of libraries use @embroider/macros:

npm ls @embroider/macros
@3p-future-solutions/ember-cui@1.24.1 /[...projectPath...]
├─┬ ember-auto-import@2.4.0
│ └── @embroider/macros@1.2.0
├─┬ ember-cli-addon-docs@4.2.2
│ ├─┬ @ember/legacy-built-in-components@0.4.0
│ │ └── @embroider/macros@0.47.2
│ ├─┬ @ember/render-modifiers@2.0.4
│ │ └── @embroider/macros@1.2.0 deduped
│ ├─┬ ember-cli-clipboard@0.16.0
│ │ └─┬ @ember/render-modifiers@2.0.4
│ │   └── @embroider/macros@1.2.0 deduped
│ ├─┬ ember-get-config@1.0.2
│ │ └── @embroider/macros@1.2.0 deduped
│ └─┬ ember-modal-dialog@4.0.0-alpha.1 invalid: "yapplabs/ember-modal-dialog#31ffee4c657ebe96b1f80adbc39c0339b52236e2" from node_modules/ember-cli-addon-docs
│   ├── @embroider/macros@0.49.0
│   └─┬ @embroider/util@0.49.0
│     └── @embroider/macros@0.49.0 deduped
├─┬ ember-element-helper@0.5.5
│ └─┬ @embroider/util@0.41.0
│   └── @embroider/macros@0.41.0
└─┬ ember-power-select@4.1.7
  └─┬ ember-basic-dropdown@3.1.0
    ├─┬ @ember/render-modifiers@2.0.4
    │ └── @embroider/macros@1.2.0
    ├── @embroider/macros@0.47.2
    └─┬ @embroider/util@0.47.2
      └── @embroider/macros@0.47.2 deduped

Is the solution to pin @embroider/macros in my resolutions like in this comment:
embroider-build/embroider#1077 (comment)

Update:
I resolved it with:

  "resolutions": {
    "@embroider/macros": "^1.2.0"
  }