formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

Missing @babel/types dependency #586

Closed bertho-zero closed 4 years ago

bertho-zero commented 4 years ago
.babelrc.js: Error while loading config - babel-plugin-react-intl tried to access @babel/types, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

with Yarn 2

longlho commented 4 years ago

do you have a repro link (codesandbox/repo)?

bertho-zero commented 4 years ago

The require is visible in the first lines of https://unpkg.com/babel-plugin-react-intl@7.1.0/dist/index.js but not in https://unpkg.com/babel-plugin-react-intl@7.1.0/package.json.