Skip to content

ttsc and webpack not matching className #63

@SomethingSexy

Description

@SomethingSexy

Do I need to use the same transformer reference if I am using ttsc to build the server-side and webpack to use the client side?

This is my tsconfig that is being run using ttsc.

    "plugins": [
      {
          "transform": "typescript-plugin-styled-components",
          "type": "config",
          "minify": true,
          "ssr": true
      }
    ] 

My webpack configuration is using:

      use: [{
        loader: 'awesome-typescript-loader',
        options: {
          getCustomTransformers: () => ({ before: [styledComponentsTransformer] })
        }
      }]

However, I am still getting Prop className did not match with a different class name on the server vs the client. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions