After today’s Plasmic Studio update (Aug 15, 2025), codegen is generating malformed import statements with empty module paths, causing complete build failures for projects using external Plasmic dependencies. Confirmed on both local builds and Vercel production builds - this is not an environment-specific issue.
Error
Module not found: Empty dependency (no request)
https://nextjs.org/docs/messages/module-not-found
Affected Code
Generated files contain broken imports like:
import { _useStyleTokens as useStyleTokens_antd_5_hostless } from ""; // plasmic-import: ohDidvG9XsCeFumugENU3J/styleTokensProvider
Environment
Date: August 15, 2025
Plasmic Packages Updated:
@plasmicapp/react-web: 0.2.381 → 0.2.398
@plasmicapp/cli: 0.1.341 → 0.1.342
Framework: Next.js 14.2.28
Language: TypeScript
Tested On: Local development build, Vercel production build
Project Details
Main Project ID: mHePzBFze6PJcjfERHFGjK (OwnerCo Website)
Thanks for taking a look. I just tried a publish moments ago and still getting the same errors in Vercel. Locally too. When I move back to a commit prior to 2 days ago I am able to get the project to build. This seems to have happened right after these commits:
A few more details that might help your investigation… I tried running npx @plasmicapp/cli sync (upgraded CLI to 0.1.342) and while it completed successfully with “Fixing import statements…” message, it did not fix the core issue.
What the sync did:
Updated some SignIn/SignUp components
Updated CLI and package versions
Did NOT create PlasmicStyleTokensProvider.tsx
Did NOT fix the empty import statements
The broken imports remain unchanged:
import { _useStyleTokens as useStyleTokens_antd_5_hostless } from ""; // still empty
Your working version should have:
import { _useStyleTokens as useStyleTokens_antd_5_hostless } from "../antd_5_hostless/PlasmicStyleTokensProvider";
The Issue: I’m missing the PlasmicStyleTokensProvider.tsx file in my antd_5_hostless folder. My folder only contains:
PlasmicGlobalContextsProvider.tsx
plasmic.module.css
But NOT PlasmicStyleTokensProvider.tsx which your working version is trying to import from.
My plasmic.json shows:
"styleTokensProviderFilePath": "",
for the antd_5_hostless project (ohDidvG9XsCeFumugENU3J).
Remaining Questions:
Does your test project have PlasmicStyleTokensProvider.tsx?
Is the codegen supposed to create this file automatically?
Could this be a sync issue where the file creation failed but the import generation succeeded?
I think this confirms that the issue is the missing PlasmicStyleTokensProvider.tsx file in the antd_5_hostless folder. The sync is not generating this file for some reason, but your test environment has it.
I’ve also run into the same problem as above - showing "styleTokensProviderFilePath": "" in my plasmic.json after a plasmic sync, and causing build errors for the empty dependency.
Regular sync didn’t work, but --force completely rebuilt the Style Tokens integration and resolved everything. Also updated @plasmicapp/host to 1.0.224 to eliminate version warnings. You may still have some work to do your end but I am all set, THANKS!