
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
vitepress-templ-preview
Advanced tools
A VitePress plugin to preview your templ components while documenting them.
Check out the docs here.
We welcome contributions! Whether it's reporting a bug, suggesting a feature, or submitting a pull request, your input helps improve this project.
When running pnpm web:dev
to start the sample website, you might encounter the following error:
> vitepress dev docs
failed to load config from <path>/vitepress-templ-preview/website/docs/.vitepress/config.mts
failed to start server. error:
Cannot find module '../data/patch.json'
Cause
This issue is related to the css-tree
package. The root cause seems to stem from how module exports are defined in its package.json.
Workaround
You can resolve this issue by modifying the exports field in node_modules/css-tree/package.json. Specifically, update the first exports entry like so:
"exports": {
".": {
- "import": "./lib/index.js",
+ "import": "./cjs/index.cjs",
"require": "./cjs/index.cjs"
},
...
This workaround was discussed in bun/issues/13076.
Note
While this is a temporary fix, keep an eye on updates to css-tree or related dependencies for a permanent resolution. If you encounter additional issues or have insights into fixing this differently, feel free to open an issue!
This project is licensed under the MIT License - see the LICENSE file for details.
This project makes use of static-templ, which is licensed under the GNU General Public License (GPL). Users of this project must comply with the terms of the GPL license when using static-templ. Refer to the static-templ repository for more information on its licensing terms.
FAQs
A VitePress plugin to preview your templ components while documenting them.
The npm package vitepress-templ-preview receives a total of 0 weekly downloads. As such, vitepress-templ-preview popularity was classified as not popular.
We found that vitepress-templ-preview demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.