Next.js Discord

Discord Forum

Adding components to the "React Client Manifest" manually in a WebPack Plugin?

Unanswered
Willow shoot sawfly posted this in #help-forum
Open in Discord
Avatar
Willow shoot sawflyOP
I have been writing a plugin that utilises a custom scheme to write virtualised modules (using the readResource.for(SCHEME) compilation hook from NormalModule).

When importing a react component from such a module, I receive:
Error: Could not find the module "<path>#default" in the React Client Manifest. This is probably a bug in the React Server Components bundler.
 at stringify (<anonymous>)
 at stringify (<anonymous>)


Wondering if there's any experience attempting this kind of thing in the community?

0 Replies