Skip to content

Build Issues [Mac, with yarn v24.2.0] #3559

@dsynkd

Description

@dsynkd

⚠️ Check issue is valid.

⚠️ Check that this issue hasn't been reported before.

Steps to reproduce

Running yarn outputs the following:

yarn install v1.22.22
error SyntaxError: Invalid value type 1781:0 in /Users/dsynkd/Repositories/fork/obsidian-tasks/yarn.lock
    at Parser.unexpected (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:64026:11)
    at Parser.parse (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:64154:16)
    at Parser.parse (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:64131:26)
    at parse (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:64231:21)
    at module.exports.exports.default (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:63793:96)
    at Lockfile.<anonymous> (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:3068:63)
    at Generator.next (<anonymous>)
    at step (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:310:30)
    at /opt/homebrew/lib/node_modules/yarn/lib/cli.js:321:13
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

npm i works fine though.

Running yarn dev also does not work:

yarn run v1.22.22
$ node esbuild.config.mjs
error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration.
  Use 'verbatimModuleSyntax' instead.
error TS5102: Option 'preserveValueImports' has been removed. Please remove it from your configuration.
  Use 'verbatimModuleSyntax' instead.

✘ [ERROR] [plugin esbuild-svelte] [svelte-preprocess] Encountered type error

    src/Obsidian/TaskModal.ts:3:21:
      3 │ import EditTask from '../ui/EditTask.svelte';
        ╵                      ~~~~~~~~~~~~~~~~~~~~~~~

1 error
[watch] build finished, watching for changes...
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
~~

Expected Behavior

Installation and build commands should not produce errors.

Current behaviour

There are installation errors.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.9.7

Tasks Plugin Version

7.20

Checks

  • I have tried it with all other plugins disabled and the error still occurs

Possible solution

Upgrade "@tsconfig/svelte" to "^5.0.4".

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: internalOnly regards development or contributing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions