Comments (7)
Not familiar with yarn v2 yet.
from core.
Meanwhile, I am having some troubles with yarn 1.
When requiring vuepress in a workspace with vuepressV1:
{
"name": "demo",
"scripts": {
"build": "vuepress build src",
"clean-serve": "vuepress dev src --no-cache",
"eject": "vuepress eject-hope src",
"serve": "vuepress dev src"
},
"devDependencies": {
"vuepress": "1.7.1",
}
}
But I can not get a bin folder with vuepress 2
I both tried on Windows20H2 and WSL2(Ubuntu 20.04) with Node 14.15.3 and Yarn 1.22.5.
I am able to run vuepress in the root folder(the bin folder has vuepress
), while the projects inside it are catching issues.
Could you check the package.json for vuepress2?
I think
"bin": {
"vuepress": "lib/cli.js"
},
is required for everything to work fine. @meteorlxy
And if it's an issue, would you mind publishing a new version please?
P.S.: That may be the reason why I cannot found the vuepress command with Yarn2.
from core.
The vuepress
command is provided by @vuepress/cli
.
So the @vuepress/cli
that required by vuepress
did not take effect when using yarn v2? 🤔
from core.
The
vuepress
command is provided by@vuepress/cli
.So the
@vuepress/cli
that required byvuepress
did not take effect when using yarn v2? 🤔
It's even not working with yarn V1 in my case. The screenshot I provides are all with v1
Edit: wait, I will try requiring @vuepress/cli
and see if it works
from core.
I think we should metion it through docs, that if we are using workspace, we should require @vuepress/cli
to get the vuepress command. @meteorlxy Or we should probably make some changes to let the bin generated by the vuepress
package and remain the cli file in @vuepress/cli
from core.
I am afraid the yarnV2 issue is related to it too. Yarn 2 only extracts command which is directly required by the project.
from core.
We need to confirm if the fix works in next release
from core.
Related Issues (20)
- [Bug report] 开发环境下,修改文件 `permalink` 会导致 `Failed to resolve import "xxx"` HOT 7
- [Bug report] mailto: and tel: are no longer supported HOT 7
- [Bug report] Duplicate webpack chunkname with different pages HOT 1
- [Bug report] linkPlugin can not handle query
- [Bug report] add extra pages seems to have no effect HOT 5
- [Feature request] Removing fence related plugin in @vuepress/markdown HOT 5
- vuepress import gif 404 HOT 2
- [Feature request] add a bundler of `rspack/rsbuild` HOT 9
- [Feature request] support `*.module.ext` for css modules
- [Bug report] When the page path includes `hash`/ `query`, the page will load a 404 error. HOT 2
- [Bug report] when use the url with anchor then refresh the page, vuepress will return 404 page HOT 4
- [Bug report] Cant build project HOT 9
- [Bug report] vite 5.2.12 failed to build dynamic imported style files HOT 5
- [Bug report] Can not access with ipv6 address HOT 1
- [Feature request] Re-export `vite/client` in `@vuepress/bundler-vite`
- [Bug report] commentService do not display HOT 1
- [Feature request] Recognize @source and maybe treat all @ started path as alias with markdown image HOT 3
- [Bug report] Cannot find package '@internal/routes' HOT 2
- [Feature request] 右侧锚点侧边栏不知道要怎么才能显示 HOT 1
- [Feature request] Support vite 5.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.