Giter Club home page Giter Club logo

Comments (7)

antfu avatar antfu commented on July 2, 2024 1

Contribution welcome, refer https://github.com/antfu/vscode-vite/blob/57f6c6b6978b635bd25ab511744a8b5219fcf2f1/src/open.ts#L21-L29

from slidev-vscode.

antfu avatar antfu commented on July 2, 2024

You will need to have @slidev/cli dep in your root package.json to enable the extension

from slidev-vscode.

ivaquero avatar ivaquero commented on July 2, 2024

I guess I had installed it... I can debug, but still not sure what is wrong with this. BTW, I used yarn, will yarn cause problems?

image

the error log is as follows:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/Cellar/node/16.3.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle text_slides@~prebuild: text_slides@
6 info lifecycle text_slides@~build: text_slides@
7 verbose lifecycle text_slides@~build: unsafe-perm in lifecycle true
8 verbose lifecycle text_slides@~build: PATH: /Users/integrator/.config/yarn/global/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/integrator/Documents/my_projects/notes-math/text_slides/node_modules/.bin:/Applications/Polyspace/R2019a/bin:/Library/TeX/texbin:/usr/local/opt/sqlite/bin:/usr/local/opt/ruby/bin:/usr/local/opt/gettext/bin:/usr/local/opt/curl/bin:/usr/local/share/npm/bin:/usr/local/sbin:/usr/local/Caskroom/miniconda/base/bin:/usr/local/Caskroom/miniconda/base/condabin:/usr/local/opt/[email protected]/bin:/usr/local/opt/[email protected]/bin:/usr/local/opt/curl/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/usr/local/opt/gettext/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/local/opt/fzf/bin
9 verbose lifecycle text_slides@~build: CWD: /Users/integrator/Documents/my_projects/notes-math/text_slides
10 silly lifecycle text_slides@~build: Args: [ '-c', 'slidev build' ]
11 silly lifecycle text_slides@~build: Returned: code: 1 signal: null
12 info lifecycle text_slides@~build: Failed to exec build script
13 verbose stack Error: text_slides@ build: slidev build
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/Users/integrator/.config/yarn/global/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (node:events:394:28)
13 verbose stack at ChildProcess. (/Users/integrator/.config/yarn/global/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (node:events:394:28)
13 verbose stack at maybeClose (node:internal/child_process:1067:16)
13 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
14 verbose pkgid text_slides@
15 verbose cwd /Users/integrator/Documents/my_projects/notes-math/text_slides
16 verbose Darwin 20.5.0
17 verbose argv "/usr/local/Cellar/node/16.3.0/bin/node" "/usr/local/bin/npm" "run" "build"
18 verbose node v16.3.0
19 verbose npm v6.14.13
20 error code ELIFECYCLE
21 error errno 1
22 error text_slides@ build: slidev build
22 error Exit status 1
23 error Failed at the text_slides@ build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

from slidev-vscode.

antfu avatar antfu commented on July 2, 2024

In your root package.json, or you can open up the folder instead of the workspace

from slidev-vscode.

ivaquero avatar ivaquero commented on July 2, 2024

Oh, right, I just found my root package.json lost. Thank you for your time.

from slidev-vscode.

antfu avatar antfu commented on July 2, 2024

Closing this for now, til we find a better solution to detect the existence of Slidev. Thanks.

from slidev-vscode.

ivaquero avatar ivaquero commented on July 2, 2024

@antfu Hello again, Anthony! Instead of using the preview on side panel, I think using your Browse Lite extension could be another good choice. So could you please consider to add a method to pass http://localhost:3030/ to Browse Lite ? This enables us to start a slidev project in a subfolder, at least for this moment.

image

from slidev-vscode.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.