Skip to content

Commit

Permalink
Fix Circle CI builds due to incorrect UnsupportedEnumDeclarationParse…
Browse files Browse the repository at this point in the history
…rError import

Summary:
Changelog: [Internal]

The import style used
```
npm ERR! /home/circleci/react-native/packages/react-native-codegen/lib/parsers/typescript/modules/index.js:13
npm ERR! import {UnsupportedEnumDeclarationParserError} from '../../errors';
npm ERR! ^^^^^^
npm ERR!
npm ERR! SyntaxError: Cannot use import statement outside a module
npm ERR!     at internalCompileFunction (node:internal/vm:73:18)
npm ERR!     at wrapSafe (node:internal/modules/cjs/loader:1175:20)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1219:27)
npm ERR!     at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
npm ERR!     at Module.load (node:internal/modules/cjs/loader:1113:32)
npm ERR!     at Module._load (node:internal/modules/cjs/loader:960:12)
npm ERR!     at Module.require (node:internal/modules/cjs/loader:1137:19)
npm ERR!     at require (node:internal/modules/helpers:121:18)
npm ERR!     at Object.<anonymous> (/home/circleci/react-native/packages/react-native-codegen/lib/parsers/typescript/parser.js:60:19)
npm ERR!     at Module._compile (node:internal/modules/cjs/loader:1255:14)
```
is not supported.

Reviewed By: philIip

Differential Revision: D56809538

fbshipit-source-id: 4b42f9e964d49c4fe3c3a4020eb2b3860fdd810c
  • Loading branch information
GijsWeterings authored and facebook-github-bot committed May 1, 2024
1 parent a9a7382 commit 237ddb4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ import type {
TypeResolutionStatus,
} from '../../utils';

import {UnsupportedEnumDeclarationParserError} from '../../errors';

const {
UnsupportedEnumDeclarationParserError,
UnsupportedGenericParserError,
UnsupportedTypeAnnotationParserError,
} = require('../../errors');
Expand Down

0 comments on commit 237ddb4

Please sign in to comment.