Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[bug] build with Nextjs, error 'Uncaught SyntaxError: Unexpected template string' occurs  #211

@ranlix

Description

@ranlix

Is there an existing issue for this?

  • I have searched the existing issues

Package Version

0.2.15

Current Behavior

Demo repo:

https://github.com/liran319/next-wagmi-demo

I have install [email protected] into my project with Nextjs, it works well when start project with 'yarn dev'.
But Uncaught SyntaxError: Unexpected template string occurs when run 'yarn build && yarn start'.
image

It seems that only occurs on production mode.And there is no stack to debug.
Could you please have a check?

Expected Behavior

Both development and production mode work well.

Steps To Reproduce

  1. Clone the repo https://github.com/liran319/next-wagmi-demo, and enter that folder;
  2. Run yarn to install deps;
  3. Run 'yarn build && yarn start'
  4. check console, found 'Uncaught SyntaxError: Unexpected template string', and button doesn't work

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

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