question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YAMLException: unknown tag !<?>

See original GitHub issue
  • Version: 4.3.4
  • Electron Version: 9.2.0
  • Electron Type (current, beta, nightly): current
  • Target: win

Im getting this error when starting a packed app on Windows and I have no idea where to look for. Screenshot: http://prntscr.com/u1hxpo

Unhandled Promise Rejection
YAMLException: unknown tag !<?> at line 1, column 9:
    provider: spaces
            ^

All yaml configurations look fine (local and the update ones sent to the provider - spaces). I’m using spaces from Digital Ocean and I’m using a JS file for configuration.

$ touch electron-builder.js

const dayjs = require("dayjs");

module.exports = {
  appId: "APPID",
  productName: "APP",
  buildVersion: dayjs().format("YYYYMMDD"),
  directories: {
    app: "./build/",
    output: "./dist/",
  },
  nsis: {
    oneClick: false,
    allowToChangeInstallationDirectory: true,
    installerIcon: "icon.ico",
    installerHeaderIcon: "icon.ico",
    artifactName: "${productName} Setup ${buildVersion}.${ext}",
  },
  publish: {
    provider: "spaces",
    region: "fra1",
    name: "asd",
    path: "app/v2/beta",
    channel: "beta",
  },
};

Same results when using a similar configuration (just without the buildVersion field), using the package.json.

app-update.yml is as follows:

provider: spaces
region: fra1
name: asd
path: /app/v2/beta
updaterCacheDirName: app-updater
publisherName:
  - MyOwnName

builder-effective-config.yaml

directories:
  output: ./dist/
  buildResources: build
  app: ./build/
appId: APPID
productName: APP
nsis:
  installerIcon: icon.ico
  installerHeaderIcon: icon.ico
  artifactName: '${productName} Setup ${buildVersion}.${ext}'
publish:
  provider: spaces
  region: fra1
  name: asd
  path: /app/v2/beta
electronVersion: 9.2.0

I’m using webpack to bundle my electron app, in case that matters.

Any ideas what might be happening?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
sanex3339commented, Nov 3, 2020
1reaction
rasgo-cccommented, Aug 18, 2020

Not related with electron-updater but with webpack obfuscator plugin I’m using.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS SAM YAML template - Unknown Tag !Ref - Stack Overflow
When I try to deploy my AWS SAM YAML file, it fails saying the !Ref is an unknown tag.
Read more >
YAML tags not working in non Lovelace YAML mode
Unable to parse YAML: YAMLException: unknown tag !<!include_dir_merge_named> at line 81, column 84: ... templates/templates/button-card/.
Read more >
CI/CD pipeline editor gives `unknown tag` error when using ...
Using !reference in the script section scope renders an error in the CI/CD pipeline editor UI, saying it is an unknown tag -...
Read more >
AWS CloudFormation YAML function intellisense errors
I updated visual studio 2019 today to 16.8 and using AWS YAML functions such as !Ref shows up as intellisense errors (“unknown tag...
Read more >
yaml exception unknown tag ref
yaml exception unknown tag ref. This error message is almost certainly a false-positive from the YAML parser your IDE is using. To assess...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found