Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in src/Markwhen/EventMarkdown.vue? #110

Closed
jgclark opened this issue Mar 21, 2023 · 1 comment
Closed

Build error in src/Markwhen/EventMarkdown.vue? #110

jgclark opened this issue Mar 21, 2023 · 1 comment

Comments

@jgclark
Copy link

jgclark commented Mar 21, 2023

I've cloned the repo to build locally for the first time.
I've done npm i and then npm run build but it appears to fail with these error messages:

npm run build

> renderer@0.0.0 build /Users/jonathan/GitHub/markwhen
> run-p type-check build-only


> renderer@0.0.0 type-check /Users/jonathan/GitHub/markwhen
> vue-tsc --noEmit -p tsconfig.vitest.json --composite false


> renderer@0.0.0 build-only /Users/jonathan/GitHub/markwhen
> vite build

vite v4.1.1 building for production...
✓ 948 modules transformed.
src/Markwhen/EventMarkdown.vue:40:60 - error TS2554: Expected 1 arguments, but got 2.

40   editorOrchestrator.setText(`- [${checked ? "x" : " "}]`, {
                                                              ~
41     from: range.from,
   ~~~~~~~~~~~~~~~~~~~~~
42     to: range.to,
   ~~~~~~~~~~~~~~~~~
43   });
   ~~~


Found 1 error in src/Markwhen/EventMarkdown.vue:40

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! renderer@0.0.0 type-check: `vue-tsc --noEmit -p tsconfig.vitest.json --composite false`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the renderer@0.0.0 type-check script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jonathan/.npm/_logs/2023-03-21T09_17_12_448Z-debug.log
ERROR: "type-check" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! renderer@0.0.0 build: `run-p type-check build-only`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the renderer@0.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jonathan/.npm/_logs/2023-03-21T09_17_12_609Z-debug.log

I know JS but not vue or TS, so I'm sorry that I can't suggest a fix.

@jgclark
Copy link
Author

jgclark commented Mar 21, 2023

Sorry: misread the instructions.

@jgclark jgclark closed this as completed Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant