vercel / next.js

The React Framework
https://nextjs.org
MIT License
125.15k stars 26.73k forks source link

react-countup show error: SyntaxError: Unexpected token 'export' #50326

Closed nqsjd178559344 closed 1 year ago

nqsjd178559344 commented 1 year ago

Verify canary release

Provide environment information

{
  author: {
    name: 'shaker-users@yahoo-inc.com',
    email: 'shaker-users@yahoo-inc.com'
  },
  description: 'Shaker demo',
  'dist-tags': {
    latest: '0.1.10'
  },
  maintainers: [
    {
      name: 'dferreiroval',
      email: 'elfogris@gmail.com'
    }
  ],
  name: 'demo',
  time: {
    created: '2022-01-26T21:14:38.726Z',
    modified: '2022-03-24T12:29:24.539Z',
    '0.0.1': '2012-05-11T07:23:51.749Z',
    '0.1.10': '2012-09-19T17:38:01.477Z'
  },
  versions: [
    '0.0.1',
    '0.1.10'
  ],
  version: '0.1.10',
  contributors: [
    {
      name: 'Diego Ferreiro',
      email: 'diegof@yahoo-inc.com'
    },
    {
      name: 'Stephen Murphy',
      email: 'murphys@yahoo-inc.com'
    },
    {
      name: 'Brett Stimmerman',
      email: 'brettstimmerman@gmail.com'
    },
    {
      name: 'Julien Lecomte',
      email: 'jlecomte@yahoo-inc.com'
    }
  ],
  dependencies: {
    'mojito-shaker': '*',
    mojito: '0.4.x'
  },
  keywords: [
    'mojito',
    'rollups'
  ],
  bugzilla: {
    product: 'Search',
    component: 'Shaker'
  },
  scripts: {
    start: 'node server.js'
  },
  devDependencies: {},
  optionalDependencies: {},
  engines: {
    node: '*'
  },
  dist: {
    shasum: 'a230ec5b38d19de9bf3eede100a6e0fcdd5481c2',
    tarball: 'https://registry.npmmirror.com/demo/-/demo-0.1.10.tgz',
    size: 235557,
    integrity: 'sha512-c0675+CqwBWhLNUJsqhqrhJR/PkElBe07+0O87Co+h62DpNRTOZyiw0g/aqRxyjsbyX3KKsMXN5te58Jje1O2w=='
  },
  directories: {}
}

Which area(s) of Next.js are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/s/quizzical-fast-6ifiw5?file=/pages/index.tsx

To Reproduce

image

Describe the Bug

show error

Expected Behavior

show success

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

github-actions[bot] commented 1 year ago

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.