Skip to content

Server-side Rendering with React Components (Hybrid approach) #572

Closed
@kumarrk5

Description

@kumarrk5

I am trying to setup asp.net core project with server-side rendering concept using react components(Hybrid way).

I can't use third party libraries in server-side rendering.
for example, https://reactstrap.github.io/ library throws this error.

"React.Exceptions.ReactScriptLoadException: Error while loading "~dist/server.bundle.js": Script Document [2]: Uncaught ReferenceError: Map is not defined at line: 2880 column: 69.
Line: 2880"

I attached the relevant screenshots here. please check this. Did I miss anything ?

error:

error

package file:

package file

server-side component call in home view

server-side component call in home view

startup file register

startup file register

webpack config

webpack config

expose-loader

expose-loader

mapping of server-side rendering

mapping of server-side rendering

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