Skip to content

Cannot read property 'isCE' of null in remote component with slot using Module Federation #4344

Closed
@fatawesome

Description

@fatawesome

Version

3.2.2

Reproduction link

https://github.com/fatawesome/vue-next-isce-issue

Steps to reproduce

Clone the repository, from root run yarn && lerna bootstrap && yarn start.
Navigate to http://localhost:3000.

What is expected?

On the page you should see two lines of text:

  1. Host content
  2. test remote component

What is actually happening?

Server crashes on renderSlot function with Cannot read property 'isCE' of null error.


Removing slot from remote component fixes the issue, but obviously we need slots in our code :)
Issue appears when building application on Module Federation architecture. We also use @telenko/node-mf package to fetch code in a universal manner, but I believe this lib cannot be a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions