aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
16.26k stars 574 forks source link

Gatsby.js errors with @babel/plugin-syntax-import-attributes after upgrade from 2.6.4 to 3.0.2 #950

Closed JustFly1984 closed 7 months ago

JustFly1984 commented 8 months ago

What version of million are you using?

3.0.2

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

yarn

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

After upgrading to 3.0.2 gatsby develop is crashing with error:

 ERROR  UNKNOWN

/Users/justfly1984/projects/ospm-gatsby-frontend/src/utils/locale.ts: Support for the experimental syntax 'importAttributes' isn't currently enabled (61:9):

  59 |           type: 'json',
  60 |         },
> 61 |       }).then((data) => {
     |         ^
  62 |         return data.default
  63 |       })
  64 |     }

Add @babel/plugin-syntax-import-attributes (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes) to the 'plugins' section of your Babel
config to enable parsing.

Reverting back to 2.6.4 solves an issue

What's the expected result?

No errors

Link to Minimal Reproducible Example

sorry

Participation

github-actions[bot] commented 8 months ago

Thanks for opening this issue! A maintainer will review it soon.

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.

JustFly1984 commented 6 months ago

not stale

JustFly1984 commented 6 months ago

reopen