Skip to content

When running 'npm run build': Failed to minify '../cedict_ts.u8.js' #45

Description

Hello again.

I was trying to use Hanzi with React where, to deploy, you must first run the command npm run build.

I got the following error when doing so:

Failed to minify the code from this file: ./node_modules/hanzi/lib/data/cedict_ts.u8.js:1

Upon research, I found this issue where it is said that

You may occasionally find a package you depend on needs compiled or ships code for a non-browser environment.
This is considered poor practice in the ecosystem and does not have an escape hatch in Create React App.

So, with my very limited knowledge, I'm guessing there's no easy fix here? And it actually requires a lot of work to make these changes?

Just posting in case I'm wrong. But if I'm not. That's okay too.

Thank you Niel for being so patient with me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions