Troubleshooting Exported Components
This guide covers common issues you might encounter when working with DevLink and provides solutions to help you resolve them.
Authentication and setup
API token authentication failures
Issue: DevLink Export fails with authentication errors
Solutions:
- Verify your Webflow API token has the correct permissions
- Check that your token is properly stored in your
.envfile - Ensure the token is being accessed correctly in your
webflow.jsonfile
Configuration File Location
Issue: The DevLink CLI can’t find your configuration
Solutions:
- Ensure the
webflow.jsonfile is in the root directory of your project - Check that the file has the correct name and extension
- Verify the file has proper syntax
Cannot resolve webflow/* imports
Cannot resolve webflow/* imports
Many code examples in this documentation show importing components from an alias:
You can set up your project to import via this alias in various ways after you’ve synced your components. Here are a few examples:
Via tsconfig.json
Update the paths in the tsconfig.json file to point to the correct location of your exported components.
Via Webpack
Update the resolve.alias settings in your Webpack configuration to point to the correct location of your exported components.
Component export issues
Missing components
Issue: Some components aren’t exported from Webflow
Solutions:
- Verify the elements are properly converted to Components in Webflow (not just elements on the canvas)
- Check if the components use only supported elements
- Ensure component names don’t contain special characters or spaces
Export Process Failures
Issue: The export process starts but fails to complete
Solutions:
- Check for network connectivity issues
- Verify you’re not exceeding API rate limits
- Try syncing specific components instead of all at once
You can narrow the export to a specific component by setting the devlink-export.components regex in webflow.json (for example, "components": "YourComponentName") before re-running:
Styling and rendering issues
Missing Styles
Issue: Components don’t look the same as in Webflow
Solutions:
- Ensure the DevLink
global.cssfile is imported at the application root - Verify the
DevLinkProvidercomponent is wrapping your application at the root - Check for CSS conflicts with other styles in your application
- Inspect the browser console for CSS-related errors
Font loading issues
See the fonts guide for how Google, Adobe, and custom uploaded fonts ship with DevLink — including domain allowlists, CSP directives, and a full troubleshooting checklist.
Z-index Issues
Issue: Elements appearing behind or in front of others incorrectly
Solutions:
- Check z-index values in the exported CSS
- Inspect stacking contexts in your application
- Adjust z-index values as needed
- Consider using React portals for complex stacking situations
Interaction issues
Interactions Not Working
Issue: Animations or interactions from Webflow don’t work
Solutions:
- Verify the
DevLinkProvideris properly set up in your application - Check if the interactions use supported features
- Inspect browser console for JavaScript errors
- Consider simplifying complex interactions
Framework-specific issues
Next.js App Router Issues
Issue: DevLink components don’t work with React Server Components
Solutions:
- Add the
"use client"directive to component files that use client-side features - Import DevLink components only in client components
- Ensure the DevLinkProvider is in a client-side context
Example client component:
Next.js Image Optimization
Issue: Images in DevLink components don’t work with Next.js Image optimization
Solution: Replace DevLink Image elements with Next.js Image components
CSS Conflicts with Tailwind
Issue: DevLink styles conflict with Tailwind CSS
Solutions:
- Use Tailwind’s preflight reset cautiously
- Consider using Tailwind’s
@layerdirective to control specificity - Use more specific selectors for custom styles
CSS Loading Issues
If styles aren’t loading correctly:
- Verify the DevLink
global.cssimport path is correct for your framework - Ensure CSS loading is configured correctly in your app
- Check for CSS isolation, scoping, and conflict issues with browser tools
Performance Optimizations
To optimize DevLink components in production:
- Enable code splitting in your framework configuration
- Only import the DevLink components you need from their respective file, rather than importing from the entire
webflowdirectory - Consider lazy loading components that aren’t needed on initial render
- Use production builds to minimize JavaScript and CSS
DevLink CLI Issues
CLI Installation Problems
Issue: Issues installing or running the Webflow CLI
Solutions:
- Check Node.js version — v22 or higher is required
- Clear npm cache and try reinstalling
- Ensure you have proper permissions for the installation directory
CLI Command Not Found
Issue: Webflow command not found after installation
Solutions:
- Ensure the package is installed and up to date
- Use
npxto run the CLI commands - Add the CLI to your
package.jsonscripts
In your package.json:
Then run: