Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.
This repository has been archived by the owner on May 2, 2022. It is now read-only.

create-react-app application throws webassembly error after page refresh #285

Open
@ahashans

Description

I have a react application generated by create-react-app. I have followed the instructions on how to integrate muze js in react app from the official documentation. I have used craco to override webpack copyplugin. When I start my application it generates the muze chart. but when I refresh the page, It throws an uncaught webassembly error.
image

Here is the craco config file content:

const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
module.exports = {
  style: {
    postcss: {
      plugins: [
        require('tailwindcss'),
        require('autoprefixer'),
      ],
    },
  },
  webpack: {
    plugins: [
      new CopyWebpackPlugin([
        {
          from: path.resolve("node_modules", "@chartshq/muze/dist"),
          to: '.'
        },
      ])
    ]
  }
}

Also, I have noticed that after integrating muze js, tailwindcss is not working properly.
Can anyone point me where is the problem. From my guess the copyWebPlugin seems not working after page refresh.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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