-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Complete vitepress migration #3597
Comments
I pull the last version and it is not building... yarn build
yarn run v1.22.5
$ yarn clean && concurrently "yarn build:vite" "yarn build:types"
$ rimraf dist
$ ts-node-esm --transpileOnly --project=.vite/tsconfig.json .vite/build.ts
$ tsc -p ./tsconfig.json --emitDeclarationOnly
[0] SyntaxError: Unexpected identifier
[0] at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)
[0] at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)
[0] at async link (node:internal/modules/esm/module_job:67:21)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
[0] yarn build:vite exited with code 1
[1] yarn build:types exited with code 0 System: |
We're using pnpm now instead of yarn. So install pnpm and delete node_modules folder. Also, make sure you have
|
I'm having the same issue running │ [1] [0] SyntaxError: Unexpected identifier
│ [1] [0] at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)
│ [1] [0] at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)
│ [1] [0] at async link (node:internal/modules/esm/module_job:67:21)
│ [1] [0] ELIFECYCLE Command failed with exit code 1. Should I raise this on a new issue? I can't see it mentioned anywhere else. |
@kevsturman this may be related to Node version < 18. @sidharthv96 maybe it's a good idea to point to the minimal required node version in the contribution docs? |
I've been using v16 without any issues so far... Wonder why it's not working there. |
Can you try the steps mentioned here? I'll raise a PR with v18 migration soon. |
@knsv good catch! So yeah, seems like 16.16.x is the current min version, which could be related to some path resolution stuff used by |
@emersonbottero please let us know if this solves your issue. |
@sidharthv96 Yes I can (updating the node worked) . example:
I have 2 options..
Missing ci/cd in my version
please let me know which options should I follow. 😁 P.S. Next docs updates should use vitepress logic in mind.
|
You can see which all files have changed in docs by running git diff 9468bffcbb develop -- packages/mermaid/src/docs/ I think it'll be easier for you to go with Option 2. Replace This will also help us track what changes you've made instead of having a completely new folder like we had in vdocs, which made change tracking hard. Although, now thinking about it, you could checkout 9468bff, move vdocs to docs, and then do a diff to see what your changes were.
It's not just a copy, we're doing multiple transformations.
You could leave it as is if it's not a major issue. Linking #2910 for context. |
an gh-pages branch is required. (and you need to configure pages to use this branch |
@emersonbottero, seems like #3515 was not completed before merge.
Can you please finish it so that we can publish the new docs page?
The text was updated successfully, but these errors were encountered: