CLD-1736: Replace DevLink _Builtin imports with native HTML#2
Merged
Merged
Conversation
…perties for Webflow integration
Removed the broken imports of Section, Block, and Link from @/devlink/_Builtin in src/app/page.tsx — these are user-generated and don't exist in a fresh clone, so the Next build failed. The homepage now uses native section/div/a elements with styles extracted into page.css. Added "@webflow" path alias to tsconfig.json so DevLink components can be imported as `import { ComponentName } from "@webflow"` once synced, and updated layout.tsx to use it for DevLinkProvider. Updated the docs link to /data-clients/docs/getting-started to match the scaffold change in webflow/webflow-cli#589.
Drops src/app/page.css and inlines the equivalent styles on the section, heading, paragraph, and link elements. Matches the inline-style convention used in the homepage before the DevLink components were removed.
The @import "../devlink/global.css" in globals.css breaks the build on a fresh clone because the file is user-generated by `webflow devlink sync`. Also corrected the relative path to "../webflow/global.css" so it matches the devlink-export rootDir in webflow.json once uncommented.
The "@webflow" tsconfig path was pointing at ./webflow, but DevLink exports to ./src/webflow per webflow.json's `devlink-export.rootDir`. Also restored the Webflow global styles import in globals.css with the correct path: ../webflow/css/global.css (the file is generated by the DevLink export which runs automatically after init).
Removes the dedicated "@webflow" path alias from tsconfig and switches layout.tsx to import DevLinkProvider via the existing "@/*" alias — import { DevLinkProvider } from "@/webflow/DevLinkProvider"; Also updates the example-import hint in page.tsx to match.
Switches the side-effect CSS import in layout.tsx back to the idiomatic sibling-relative form: import "./globals.css"; Next's built-in type defs only declare *.module.css, so plain *.css side-effect imports raised "Cannot find module or type declarations". Adds src/types.d.ts with `declare module "*.css";` to cover it.
agustinchiarotto
approved these changes
May 18, 2026
This was referenced May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The homepage in
src/app/page.tsximportedSection,Block, andLinkfrom@/devlink/_Builtin. Those files are user-generated bywebflow devlink syncand don't exist in a fresh clone, sonext buildfails immediately after running this template. This PR removes the broken imports and replaces the markup with native HTML elements (with inline styles) so the project builds and runs out of the box.This mirrors the equivalent scaffold change in webflow/webflow-cli#589, which already removed these internal component dependencies from the non-DevLink scaffolds shipped via
webflow cloud init.Changes
src/app/page.tsx— replacedSection/Block/Linkfrom@/devlink/_Builtinwith native<section>/<div>/<a>using inline styles. Dropped\"use client\"(no longer needed). Updated the docs URL to/data-clients/docs/getting-startedto match #589.src/app/layout.tsx— updated DevLinkProvider import to use the new@webflowalias:import { DevLinkProvider } from \"@webflow\". The provider still wraps{children}so DevLink stays wired up.tsconfig.json— added\"@webflow\": [\"./webflow\"]topathsso DevLink-exported components can be imported asimport { ComponentName } from \"@webflow\"once synced.DevLinkProviderand the@import \"../devlink/global.css\"inglobals.cssare intentionally kept — they're part of the DevLink setup users opt into by syncing.Linked ticket
CLD-1736
Test plan
npm install && npm run buildsucceeds on a fresh clone (verified locally withbasePathtemporarily set to/appsince\"CLOUD_MOUNT_PATH\"is a deploy-time placeholder)webflow devlink sync,import { ComponentName } from \"@webflow\"resolves and components render🤖 Generated with Claude Code