You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried upgrading my website from v 2.6.4 to 3.0.2 but started getting this error.
unhandledRejection SyntaxError: /Users/jahir/dev/jahir/website/.contentlayer/generated/index.mjs: Support for the experimental syntax 'importAttributes' isn't currently enabled (7:43): 5 | // NOTE During development Contentlayer imports from `.mjs` files to improve HMR speeds. 6 | // During (production) builds Contentlayer it imports from `.json` files to improve build performance.> 7 | import allBlogs from './Blog/_index.json' assert { type: 'json' } | ^ 8 | 9 | export { allBlogs } 10 |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.
What's the expected result?
The build should be completed normal and successfully
What version of
million
are you using?3.0.2
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
yarn
What operating system are you using?
Mac
What browser are you using?
Arc
Describe the Bug
I tried upgrading my website from v
2.6.4
to3.0.2
but started getting this error.What's the expected result?
The build should be completed normal and successfully
Link to Minimal Reproducible Example
I don't have one, sorry. But here's a PR with the changes I did: jahirfiquitiva/jahir.dev#73
Participation
The text was updated successfully, but these errors were encountered: