Comments (1)
This fix only solved part of the problem and wasn't the actual root problem where the bug is.
The problem is not when it's serialized. The problem is it had an incorrect route to begin with due to string manipulation in the graph. This happened when we added nested routes. We now have to revert this fix and update graph.js:
// get remaining string after user's pages directory
let subDir = filePath.substring(pagesDir.length - 1, filePath.length);
By adding the -1 we're including the /
in our routes. When the route is serialized, it does not add a duplicate index folder. The previous fix only solved one part of the issue. The reason it passed unit tests is because even when we're testing the index file, the elements all rendered but they were not within the correct route. Had we tested via puppeteer however, this wouldn't have passed.
Also app-template has a default route at /
with a component of eve-index
this is no longer required to be added by default within the template. scaffold.js can already take care of it. Re-opening and refixing.
from greenwood.
Related Issues (20)
- `static` property initializations break during bundling HOT 1
- "no custom element class found for this file" warning when prerendering with WCC HOT 1
- `develop` command fails on creating import map with `Failed to parse URL` error (Node >= 18.19.0)
- Lit v3 upgrade and SSR Pages support and compatibility for renderer plugin
- support bundling of `url` properties (like for `@font-face` + `src`) during CSS file optimization
- Upgrade to Node `20.x` (latest LTS)
- Resumability HOT 1
- Import Attributes support in Acorn
- align assets and build output directory naming conventions
- migrate to register function for NodeJS custom imports (no more flag!)
- HTML Modules plugin (experimental)
- leverage `Sec-Fetch-Dest` header for better filtering within Greenwood resource plugins
- nested SSR pages (and API routes) are throwing a module not found error (needs additional patch for adapters) HOT 1
- improve naming for (nested) bundled SSR page and API route entry points to better reflect original file based routing name HOT 1
- apply CSS optimizations and bundling to CSS (in) modules
- `<script>` tags of type `application/json` are breaking production builds
- Sitemap Generation HOT 5
- CSS Modules ™️ plugin
- prerendering breaks optimization configuration with multi-line formatted `<script>` / `<style>` / `<link>` tags
- functions in CSS declarations (like CSS `var`) are being incorrectly optimized
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 greenwood.