<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li>
</ul>
<h3 dir="auto">How are you using Babel?</h3>
<p dir="auto">Other (Next.js, Gatsby, vue-cli, ...)</p>
<h3 dir="auto">Input code</h3>
<p dir="auto">You can see the problem here:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="994687949" data-permission-text="Title is private" data-url="https://github.com/paulmillr/chokidar/issues/1147" data-hovercard-type="issue" data-hovercard-url="/paulmillr/chokidar/issues/1147/hovercard" href="https://github.com/paulmillr/chokidar/issues/1147">paulmillr/chokidar#1147</a></p>
<h3 dir="auto">Configuration file name</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Configuration</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Current and expected behavior</h3>
<p dir="auto">While I use Nuxt.js, I got a module error.</p>
<h3 dir="auto">Environment</h3>
<p dir="auto">System:<br>
OS: Windows 10 10.0.19043<br>
Binaries:<br>
Node: 16.4.2 - C:\Program Files\nodejs\node.EXE<br>
npm: 7.18.1 - C:\Program Files\nodejs\npm.CMD</p>
<h3 dir="auto">Possible solution</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p>
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
I created a new project. I have special folders for interfaces, types and etc. I will have a lot of them, so I import them into one file and export them from there. When I want to export multiple interfaces I get an error:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: bundling failed: SyntaxError: C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\react-native\scripts\src\types\PinCode\index.ts: Exporting local &quot;IPinCodeParams&quot;, which is not declared.
  13 | }
  14 |
&gt; 15 | export { PinStatus, IPinCodeParams }
     |                     ^
    at File.buildCodeFrameError (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\core\lib\transformation\file\file.js:261:12)
    at NodePath.buildCodeFrameError (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\traverse\lib\path\index.js:157:21)
    at getLocalMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:281:22)
    at child.get.forEach.spec (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:315:11)
    at Array.forEach (&lt;anonymous&gt;)
    at programPath.get.forEach.child (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:307:33)
    at Array.forEach (&lt;anonymous&gt;)
    at getLocalExportMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:294:27)
    at getModuleMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:86:21)"><pre class="notranslate">error: bundling <span class="pl-s1">failed</span>: SyntaxError: C:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\r<span class="pl-s1">eact</span><span class="pl-c1">-</span><span class="pl-s1">native</span>\s<span class="pl-s1">cripts</span>\s<span class="pl-s1">rc</span>\t<span class="pl-s1">ypes</span>\P<span class="pl-s1">inCode</span>\i<span class="pl-s1">ndex</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>: <span class="pl-v">Exporting</span> <span class="pl-s1">local</span> <span class="pl-s">"IPinCodeParams"</span><span class="pl-kos">,</span> <span class="pl-s1">which</span> <span class="pl-s1">is</span> <span class="pl-s1">not</span> <span class="pl-s1">declared</span><span class="pl-kos">.</span>
  <span class="pl-c1">13</span> <span class="pl-c1">|</span> <span class="pl-kos">}</span>
  <span class="pl-c1">14</span> <span class="pl-c1">|</span>
<span class="pl-c1">&gt;</span> <span class="pl-c1">15</span> <span class="pl-c1">|</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> PinStatus<span class="pl-kos">,</span> IPinCodeParams <span class="pl-kos">}</span>
     <span class="pl-c1">|</span>                     <span class="pl-c1">^</span>
    <span class="pl-s1">at</span> <span class="pl-v">File</span><span class="pl-kos">.</span><span class="pl-en">buildCodeFrameError</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\c<span class="pl-s1">ore</span>\l<span class="pl-s1">ib</span>\t<span class="pl-s1">ransformation</span>\f<span class="pl-s1">ile</span>\f<span class="pl-s1">ile</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">261</span>:<span class="pl-c1">12</span><span class="pl-kos">)</span>
    <span class="pl-s1">at</span> <span class="pl-v">NodePath</span><span class="pl-kos">.</span><span class="pl-en">buildCodeFrameError</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\t<span class="pl-s1">raverse</span>\l<span class="pl-s1">ib</span>\p<span class="pl-s1">ath</span>\i<span class="pl-s1">ndex</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">157</span>:<span class="pl-c1">21</span><span class="pl-kos">)</span>
    <span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-en">getLocalMetadata</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\h<span class="pl-s1">elper</span><span class="pl-c1">-</span><span class="pl-smi">module</span><span class="pl-c1">-</span><span class="pl-s1">transforms</span>\l<span class="pl-s1">ib</span>\n<span class="pl-s1">ormalize</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">load</span><span class="pl-c1">-</span><span class="pl-s1">metadata</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">281</span>:<span class="pl-c1">22</span><span class="pl-kos">)</span>
    <span class="pl-s1">at</span> <span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-c1">get</span><span class="pl-kos">.</span><span class="pl-c1">forEach</span><span class="pl-kos">.</span><span class="pl-en">spec</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\h<span class="pl-s1">elper</span><span class="pl-c1">-</span><span class="pl-smi">module</span><span class="pl-c1">-</span><span class="pl-s1">transforms</span>\l<span class="pl-s1">ib</span>\n<span class="pl-s1">ormalize</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">load</span><span class="pl-c1">-</span><span class="pl-s1">metadata</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">315</span>:<span class="pl-c1">11</span><span class="pl-kos">)</span>
    <span class="pl-s1">at</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">forEach</span> <span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-ent">anonymous</span><span class="pl-c1">&gt;</span>)
    at programPath.get.forEach.child (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:307:33)
    at Array.forEach (<span class="pl-c1">&lt;</span><span class="pl-ent">anonymous</span><span class="pl-c1">&gt;</span>)
    at getLocalExportMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:294:27)
    at getModuleMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:86:21)</pre></div>
<p dir="auto"><strong>Input Code / Babel Configuration (.babelrc, package.json, cli command)</strong><br>
<strong>package.json</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;name&quot;: &quot;TestProject&quot;,
  &quot;version&quot;: &quot;0.0.1&quot;,
  &quot;private&quot;: true,
  &quot;scripts&quot;: {
    &quot;android&quot;: &quot;node node_modules/react-native/local-cli/cli.js run-android&quot;,
    &quot;ios&quot;: &quot;node node_modules/react-native/local-cli/cli.js run-ios&quot;,
    &quot;lint&quot;: &quot;yarn tslint &amp;&amp; yarn typecheck&quot;,
    &quot;tslint&quot;: &quot;tslint --project tsconfig.json --config tslint.json src/**/*.ts{,x} --format stylish&quot;,
    &quot;typecheck&quot;: &quot;tsc --project tsconfig.json --noEmit&quot;,
    &quot;postinstall&quot;: &quot;typesync&quot;,
    &quot;type-sync&quot;: &quot;typesync&quot;
  },
  &quot;husky&quot;: {
    &quot;hooks&quot;: {
      &quot;pre-commit&quot;: &quot;yarn lint&quot;,
      &quot;pre-push&quot;: &quot;yarn lint&quot;
    }
  },
  &quot;dependencies&quot;: {
    &quot;mobx&quot;: &quot;^4.9.2&quot;,
    &quot;mobx-persist&quot;: &quot;^0.4.1&quot;,
    &quot;mobx-react&quot;: &quot;^5.4.3&quot;,
    &quot;react&quot;: &quot;16.8.0&quot;,
    &quot;react-native&quot;: &quot;0.58.4&quot;,
    &quot;react-native-vector-icons&quot;: &quot;^6.2.0&quot;,
    &quot;react-navigation&quot;: &quot;^2.18.1&quot;
  },
  &quot;devDependencies&quot;: {
    &quot;@babel/plugin-proposal-class-properties&quot;: &quot;^7.3.0&quot;,
    &quot;@babel/plugin-proposal-decorators&quot;: &quot;^7.3.0&quot;,
    &quot;@types/babel-core&quot;: &quot;6.25.5&quot;,
    &quot;@types/jest&quot;: &quot;24.0.0&quot;,
    &quot;@types/prettier&quot;: &quot;^1.16.0&quot;,
    &quot;@types/react&quot;: &quot;16.8.2&quot;,
    &quot;@types/react-native&quot;: &quot;0.57.34&quot;,
    &quot;@types/react-native-vector-icons&quot;: &quot;^4.6.4&quot;,
    &quot;@types/react-navigation&quot;: &quot;^3.0.1&quot;,
    &quot;@types/react-test-renderer&quot;: &quot;16.8.0&quot;,
    &quot;babel-core&quot;: &quot;7.0.0-bridge.0&quot;,
    &quot;babel-jest&quot;: &quot;24.1.0&quot;,
    &quot;babel-plugin-module-resolver&quot;: &quot;^3.1.3&quot;,
    &quot;husky&quot;: &quot;^1.3.1&quot;,
    &quot;jest&quot;: &quot;24.1.0&quot;,
    &quot;jsc-android&quot;: &quot;236355.1.1&quot;,
    &quot;metro-react-native-babel-preset&quot;: &quot;0.51.1&quot;,
    &quot;mobx-logger&quot;: &quot;^0.7.1&quot;,
    &quot;prettier&quot;: &quot;^1.16.4&quot;,
    &quot;react-native-typescript-transformer&quot;: &quot;^1.2.11&quot;,
    &quot;react-test-renderer&quot;: &quot;16.6.3&quot;,
    &quot;tslint&quot;: &quot;^5.12.1&quot;,
    &quot;tslint-config-prettier&quot;: &quot;^1.18.0&quot;,
    &quot;tslint-eslint-rules&quot;: &quot;^5.4.0&quot;,
    &quot;tslint-react&quot;: &quot;^3.6.0&quot;,
    &quot;typescript&quot;: &quot;^3.2.4&quot;,
    &quot;typesync&quot;: &quot;^0.4.1&quot;
  },
  &quot;jest&quot;: {
    &quot;preset&quot;: &quot;react-native&quot;
  }
}"><pre class="notranslate"><span class="pl-kos">{</span>
  <span class="pl-s">"name"</span>: <span class="pl-s">"TestProject"</span><span class="pl-kos">,</span>
  <span class="pl-s">"version"</span>: <span class="pl-s">"0.0.1"</span><span class="pl-kos">,</span>
  <span class="pl-s">"private"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
  <span class="pl-s">"scripts"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"android"</span>: <span class="pl-s">"node node_modules/react-native/local-cli/cli.js run-android"</span><span class="pl-kos">,</span>
    <span class="pl-s">"ios"</span>: <span class="pl-s">"node node_modules/react-native/local-cli/cli.js run-ios"</span><span class="pl-kos">,</span>
    <span class="pl-s">"lint"</span>: <span class="pl-s">"yarn tslint &amp;&amp; yarn typecheck"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint"</span>: <span class="pl-s">"tslint --project tsconfig.json --config tslint.json src/**/*.ts{,x} --format stylish"</span><span class="pl-kos">,</span>
    <span class="pl-s">"typecheck"</span>: <span class="pl-s">"tsc --project tsconfig.json --noEmit"</span><span class="pl-kos">,</span>
    <span class="pl-s">"postinstall"</span>: <span class="pl-s">"typesync"</span><span class="pl-kos">,</span>
    <span class="pl-s">"type-sync"</span>: <span class="pl-s">"typesync"</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-s">"husky"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"hooks"</span>: <span class="pl-kos">{</span>
      <span class="pl-s">"pre-commit"</span>: <span class="pl-s">"yarn lint"</span><span class="pl-kos">,</span>
      <span class="pl-s">"pre-push"</span>: <span class="pl-s">"yarn lint"</span>
    <span class="pl-kos">}</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"mobx"</span>: <span class="pl-s">"^4.9.2"</span><span class="pl-kos">,</span>
    <span class="pl-s">"mobx-persist"</span>: <span class="pl-s">"^0.4.1"</span><span class="pl-kos">,</span>
    <span class="pl-s">"mobx-react"</span>: <span class="pl-s">"^5.4.3"</span><span class="pl-kos">,</span>
    <span class="pl-s">"react"</span>: <span class="pl-s">"16.8.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"react-native"</span>: <span class="pl-s">"0.58.4"</span><span class="pl-kos">,</span>
    <span class="pl-s">"react-native-vector-icons"</span>: <span class="pl-s">"^6.2.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"react-navigation"</span>: <span class="pl-s">"^2.18.1"</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"@babel/plugin-proposal-class-properties"</span>: <span class="pl-s">"^7.3.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@babel/plugin-proposal-decorators"</span>: <span class="pl-s">"^7.3.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/babel-core"</span>: <span class="pl-s">"6.25.5"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/jest"</span>: <span class="pl-s">"24.0.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/prettier"</span>: <span class="pl-s">"^1.16.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/react"</span>: <span class="pl-s">"16.8.2"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/react-native"</span>: <span class="pl-s">"0.57.34"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/react-native-vector-icons"</span>: <span class="pl-s">"^4.6.4"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/react-navigation"</span>: <span class="pl-s">"^3.0.1"</span><span class="pl-kos">,</span>
    <span class="pl-s">"@types/react-test-renderer"</span>: <span class="pl-s">"16.8.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"babel-core"</span>: <span class="pl-s">"7.0.0-bridge.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"babel-jest"</span>: <span class="pl-s">"24.1.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"babel-plugin-module-resolver"</span>: <span class="pl-s">"^3.1.3"</span><span class="pl-kos">,</span>
    <span class="pl-s">"husky"</span>: <span class="pl-s">"^1.3.1"</span><span class="pl-kos">,</span>
    <span class="pl-s">"jest"</span>: <span class="pl-s">"24.1.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"jsc-android"</span>: <span class="pl-s">"236355.1.1"</span><span class="pl-kos">,</span>
    <span class="pl-s">"metro-react-native-babel-preset"</span>: <span class="pl-s">"0.51.1"</span><span class="pl-kos">,</span>
    <span class="pl-s">"mobx-logger"</span>: <span class="pl-s">"^0.7.1"</span><span class="pl-kos">,</span>
    <span class="pl-s">"prettier"</span>: <span class="pl-s">"^1.16.4"</span><span class="pl-kos">,</span>
    <span class="pl-s">"react-native-typescript-transformer"</span>: <span class="pl-s">"^1.2.11"</span><span class="pl-kos">,</span>
    <span class="pl-s">"react-test-renderer"</span>: <span class="pl-s">"16.6.3"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint"</span>: <span class="pl-s">"^5.12.1"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint-config-prettier"</span>: <span class="pl-s">"^1.18.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint-eslint-rules"</span>: <span class="pl-s">"^5.4.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint-react"</span>: <span class="pl-s">"^3.6.0"</span><span class="pl-kos">,</span>
    <span class="pl-s">"typescript"</span>: <span class="pl-s">"^3.2.4"</span><span class="pl-kos">,</span>
    <span class="pl-s">"typesync"</span>: <span class="pl-s">"^0.4.1"</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-s">"jest"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"preset"</span>: <span class="pl-s">"react-native"</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>.babelrc</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;presets&quot;: [
    &quot;module:metro-react-native-babel-preset&quot;,
  ],
  &quot;plugins&quot;: [
    [
      &quot;@babel/plugin-proposal-decorators&quot;,
      {
        &quot;legacy&quot;: true
      }
    ],
    &quot;@babel/transform-react-jsx-source&quot;,
    [
      &quot;module-resolver&quot;,
      {
        &quot;root&quot;: [
          &quot;/src&quot;
        ],
        &quot;alias&quot;: {
          &quot;@api&quot;: &quot;./src/api&quot;,
          &quot;@actions&quot;: &quot;./src/actions&quot;,
          &quot;@components&quot;: &quot;./src/components&quot;,
          &quot;@constants&quot;: &quot;./src/constants&quot;,
          &quot;@hocs&quot;: &quot;./src/hocs&quot;,
          &quot;@managers&quot;: &quot;./src/managers&quot;,
          &quot;@locales&quot;: &quot;./src/locales&quot;,
          &quot;@reducers&quot;: &quot;./src/reducers&quot;,
          &quot;@screens&quot;: &quot;./src/screens&quot;,
          &quot;@static&quot;: &quot;./src/static&quot;,
          &quot;@stores&quot;: &quot;./src/stores&quot;,
          &quot;@styles&quot;: &quot;./src/styles&quot;,
          &quot;@types&quot;: &quot;./src/types&quot;,
          &quot;@utils&quot;: &quot;./src/utils&quot;
        }
      }
    ],
  ]
}"><pre class="notranslate"><span class="pl-kos">{</span>
  <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
    <span class="pl-s">"module:metro-react-native-babel-preset"</span><span class="pl-kos">,</span>
  <span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
    <span class="pl-kos">[</span>
      <span class="pl-s">"@babel/plugin-proposal-decorators"</span><span class="pl-kos">,</span>
      <span class="pl-kos">{</span>
        <span class="pl-s">"legacy"</span>: <span class="pl-c1">true</span>
      <span class="pl-kos">}</span>
    <span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-s">"@babel/transform-react-jsx-source"</span><span class="pl-kos">,</span>
    <span class="pl-kos">[</span>
      <span class="pl-s">"module-resolver"</span><span class="pl-kos">,</span>
      <span class="pl-kos">{</span>
        <span class="pl-s">"root"</span>: <span class="pl-kos">[</span>
          <span class="pl-s">"/src"</span>
        <span class="pl-kos">]</span><span class="pl-kos">,</span>
        <span class="pl-s">"alias"</span>: <span class="pl-kos">{</span>
          <span class="pl-s">"@api"</span>: <span class="pl-s">"./src/api"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@actions"</span>: <span class="pl-s">"./src/actions"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@components"</span>: <span class="pl-s">"./src/components"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@constants"</span>: <span class="pl-s">"./src/constants"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@hocs"</span>: <span class="pl-s">"./src/hocs"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@managers"</span>: <span class="pl-s">"./src/managers"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@locales"</span>: <span class="pl-s">"./src/locales"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@reducers"</span>: <span class="pl-s">"./src/reducers"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@screens"</span>: <span class="pl-s">"./src/screens"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@static"</span>: <span class="pl-s">"./src/static"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@stores"</span>: <span class="pl-s">"./src/stores"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@styles"</span>: <span class="pl-s">"./src/styles"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@types"</span>: <span class="pl-s">"./src/types"</span><span class="pl-kos">,</span>
          <span class="pl-s">"@utils"</span>: <span class="pl-s">"./src/utils"</span>
        <span class="pl-kos">}</span>
      <span class="pl-kos">}</span>
    <span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>tsconfing.json</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;compilerOptions&quot;: {
    &quot;target&quot;: &quot;es2015&quot;,
    &quot;module&quot;: &quot;commonjs&quot;,
    &quot;moduleResolution&quot;: &quot;node&quot;,
    &quot;jsx&quot;: &quot;react-native&quot;,
    &quot;baseUrl&quot;: &quot;./src&quot;,
    &quot;outDir&quot;: &quot;./dist&quot;,
    &quot;allowSyntheticDefaultImports&quot;: true,
    &quot;declaration&quot;: true,
    &quot;emitDecoratorMetadata&quot;: true,
    &quot;experimentalDecorators&quot;: true,
    &quot;noEmit&quot;: true,
    &quot;noImplicitAny&quot;: false,
    &quot;noUnusedLocals&quot;: true,
    &quot;noUnusedParameters&quot;: true,
    &quot;pretty&quot;: true,
    &quot;skipLibCheck&quot;: true,
    &quot;sourceMap&quot;: true,
    &quot;strict&quot;: true,
    &quot;paths&quot;: {
      &quot;@api&quot;: [
        &quot;api&quot;
      ],
      &quot;@actions&quot;: [
        &quot;actions&quot;
      ],
      &quot;@components&quot;: [
        &quot;components&quot;
      ],
      &quot;@constants&quot;: [
        &quot;constants&quot;
      ],
      &quot;@hocs&quot;: [
        &quot;hocs&quot;
      ],
      &quot;@managers&quot;: [
        &quot;managers&quot;
      ],
      &quot;@locales&quot;: [
        &quot;locales&quot;
      ],
      &quot;@reducers&quot;: [
        &quot;reducers&quot;
      ],
      &quot;@screens&quot;: [
        &quot;screens&quot;
      ],
      &quot;@static&quot;: [
        &quot;static&quot;
      ],
      &quot;@stores&quot;: [
        &quot;stores&quot;
      ],
      &quot;@styles&quot;: [
        &quot;styles&quot;
      ],
      &quot;@types&quot;: [
        &quot;types&quot;
      ],
      &quot;@utils&quot;: [
        &quot;utils&quot;
      ]
    }
  },
}"><pre class="notranslate"><span class="pl-kos">{</span>
  <span class="pl-s">"compilerOptions"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"target"</span>: <span class="pl-s">"es2015"</span><span class="pl-kos">,</span>
    <span class="pl-s">"module"</span>: <span class="pl-s">"commonjs"</span><span class="pl-kos">,</span>
    <span class="pl-s">"moduleResolution"</span>: <span class="pl-s">"node"</span><span class="pl-kos">,</span>
    <span class="pl-s">"jsx"</span>: <span class="pl-s">"react-native"</span><span class="pl-kos">,</span>
    <span class="pl-s">"baseUrl"</span>: <span class="pl-s">"./src"</span><span class="pl-kos">,</span>
    <span class="pl-s">"outDir"</span>: <span class="pl-s">"./dist"</span><span class="pl-kos">,</span>
    <span class="pl-s">"allowSyntheticDefaultImports"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"declaration"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"emitDecoratorMetadata"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"experimentalDecorators"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"noEmit"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"noImplicitAny"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"noUnusedLocals"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"noUnusedParameters"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"pretty"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"skipLibCheck"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"sourceMap"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"strict"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"paths"</span>: <span class="pl-kos">{</span>
      <span class="pl-s">"@api"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"api"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@actions"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"actions"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@components"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"components"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@constants"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"constants"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@hocs"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"hocs"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@managers"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"managers"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@locales"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"locales"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@reducers"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"reducers"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@screens"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"screens"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@static"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"static"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@stores"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"stores"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@styles"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"styles"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@types"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"types"</span>
      <span class="pl-kos">]</span><span class="pl-kos">,</span>
      <span class="pl-s">"@utils"</span>: <span class="pl-kos">[</span>
        <span class="pl-s">"utils"</span>
      <span class="pl-kos">]</span>
    <span class="pl-kos">}</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>tslist.json</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;defaultSeverity&quot;: &quot;error&quot;,
  &quot;extends&quot;: [
    &quot;tslint-config-prettier&quot;,
    &quot;tslint-eslint-rules&quot;,
    &quot;tslint-react&quot;,
    &quot;tslint:latest&quot;
  ],
  &quot;jsRules&quot;: {},
  &quot;rules&quot;: {
    &quot;await-promise&quot;: false,
    &quot;interface-over-type-literal&quot;: false,
    &quot;jsx-alignment&quot;: true,
    &quot;jsx-boolean-value&quot;: false,
    &quot;jsx-no-bind&quot;: true,
    &quot;jsx-no-lambda&quot;: false,
    &quot;max-classes-per-file&quot;: false,
    &quot;member-access&quot;: false,
    &quot;member-ordering&quot;: false,
    &quot;no-constant-condition&quot;: false,
    &quot;no-duplicate-imports&quot;: false,
    &quot;no-empty&quot;: false,
    &quot;no-implicit-dependencies&quot;: false,
    &quot;no-submodule-imports&quot;: false,
    &quot;object-literal-sort-keys&quot;: false,
    &quot;ordered-imports&quot;: false,
    &quot;quotemark&quot;: [
      true,
      &quot;single&quot;,
      &quot;jsx-single&quot;,
      &quot;avoid-escape&quot;
    ],
    &quot;semicolon&quot;: [
      true,
      &quot;always&quot;
    ],
    &quot;trailing-comma&quot;: [
      true,
      {
        &quot;singleline&quot;: &quot;never&quot;,
        &quot;multiline&quot;: &quot;always&quot;
      }
    ],
    &quot;triple-equals&quot;: [
      true,
      &quot;allow-undefined-check&quot;
    ]
  },
  &quot;linterOptions&quot;: {
    &quot;exclude&quot;: [
      &quot;./src/typings/**/*.d.ts&quot;
    ]
  },
  &quot;rulesDirectory&quot;: []
}"><pre class="notranslate"><span class="pl-kos">{</span>
  <span class="pl-s">"defaultSeverity"</span>: <span class="pl-s">"error"</span><span class="pl-kos">,</span>
  <span class="pl-s">"extends"</span>: <span class="pl-kos">[</span>
    <span class="pl-s">"tslint-config-prettier"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint-eslint-rules"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint-react"</span><span class="pl-kos">,</span>
    <span class="pl-s">"tslint:latest"</span>
  <span class="pl-kos">]</span><span class="pl-kos">,</span>
  <span class="pl-s">"jsRules"</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-s">"rules"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"await-promise"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"interface-over-type-literal"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"jsx-alignment"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"jsx-boolean-value"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"jsx-no-bind"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
    <span class="pl-s">"jsx-no-lambda"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"max-classes-per-file"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"member-access"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"member-ordering"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"no-constant-condition"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"no-duplicate-imports"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"no-empty"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"no-implicit-dependencies"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"no-submodule-imports"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"object-literal-sort-keys"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"ordered-imports"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
    <span class="pl-s">"quotemark"</span>: <span class="pl-kos">[</span>
      <span class="pl-c1">true</span><span class="pl-kos">,</span>
      <span class="pl-s">"single"</span><span class="pl-kos">,</span>
      <span class="pl-s">"jsx-single"</span><span class="pl-kos">,</span>
      <span class="pl-s">"avoid-escape"</span>
    <span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-s">"semicolon"</span>: <span class="pl-kos">[</span>
      <span class="pl-c1">true</span><span class="pl-kos">,</span>
      <span class="pl-s">"always"</span>
    <span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-s">"trailing-comma"</span>: <span class="pl-kos">[</span>
      <span class="pl-c1">true</span><span class="pl-kos">,</span>
      <span class="pl-kos">{</span>
        <span class="pl-s">"singleline"</span>: <span class="pl-s">"never"</span><span class="pl-kos">,</span>
        <span class="pl-s">"multiline"</span>: <span class="pl-s">"always"</span>
      <span class="pl-kos">}</span>
    <span class="pl-kos">]</span><span class="pl-kos">,</span>
    <span class="pl-s">"triple-equals"</span>: <span class="pl-kos">[</span>
      <span class="pl-c1">true</span><span class="pl-kos">,</span>
      <span class="pl-s">"allow-undefined-check"</span>
    <span class="pl-kos">]</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-s">"linterOptions"</span>: <span class="pl-kos">{</span>
    <span class="pl-s">"exclude"</span>: <span class="pl-kos">[</span>
      <span class="pl-s">"./src/typings/**/*.d.ts"</span>
    <span class="pl-kos">]</span>
  <span class="pl-kos">}</span><span class="pl-kos">,</span>
  <span class="pl-s">"rulesDirectory"</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><a href="https://github.com/SergeyMyssak/TestProject">Reference to the source project (Github)</a></p>
<p dir="auto"><strong>Expected behavior/code</strong><br>
I have this folder structure:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="android\
ios\
node_modules\
src\
---&gt;constants\
       |---&gt;colors.ts
       |---&gt;fonts.ts
       |---&gt;index.ts
---&gt;router\
       |---&gt;index.ts
---&gt;screen\
       |---&gt;Splash\
               |---&gt;containers\
                      |---&gt;index.ts
                      |---&gt;SplashContainer.tsx
               |---&gt;views\
                      |---&gt;index.ts
                      |---&gt;SplashView.tsx
               |---&gt;index.tsx
       |---&gt;index.ts
---&gt;types\
       |---&gt;PinCode\
               |---&gt;index.tsx
       |---&gt;index.tsx
---&gt;App.tsx
.babelrc
*
*
*
package.json
rn-cli.config.js
tsconfig.json
tslint.json"><pre class="notranslate"><code class="notranslate">android\
ios\
node_modules\
src\
---&gt;constants\
       |---&gt;colors.ts
       |---&gt;fonts.ts
       |---&gt;index.ts
---&gt;router\
       |---&gt;index.ts
---&gt;screen\
       |---&gt;Splash\
               |---&gt;containers\
                      |---&gt;index.ts
                      |---&gt;SplashContainer.tsx
               |---&gt;views\
                      |---&gt;index.ts
                      |---&gt;SplashView.tsx
               |---&gt;index.tsx
       |---&gt;index.ts
---&gt;types\
       |---&gt;PinCode\
               |---&gt;index.tsx
       |---&gt;index.tsx
---&gt;App.tsx
.babelrc
*
*
*
package.json
rn-cli.config.js
tsconfig.json
tslint.json
</code></pre></div>
<p dir="auto">In the file <strong>"PinCode"</strong> I have an enum and an interface.</p>
<p dir="auto">When I write so (all right):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export enum PinStatus {
  New = 'new',
  Confirm = 'confirm',
  Unlock = 'unlock',
  Edit = 'edit',
}

export interface IPinCodeParams {
  status: PinStatus;
  onComplete: () =&gt; void;
  onClose?: () =&gt; void;
  originalCode?: string;
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-s1">enum</span> <span class="pl-v">PinStatus</span> <span class="pl-kos">{</span>
  New <span class="pl-c1">=</span> <span class="pl-s">'new'</span><span class="pl-kos">,</span>
  Confirm <span class="pl-c1">=</span> <span class="pl-s">'confirm'</span><span class="pl-kos">,</span>
  Unlock <span class="pl-c1">=</span> <span class="pl-s">'unlock'</span><span class="pl-kos">,</span>
  Edit <span class="pl-c1">=</span> <span class="pl-s">'edit'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>

<span class="pl-s1">export</span> <span class="pl-s1">interface</span> <span class="pl-v">IPinCodeParams</span> <span class="pl-kos">{</span>
  status: <span class="pl-v">PinStatus</span><span class="pl-kos">;</span>
  onComplete: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">void</span><span class="pl-kos">;</span>
  <span class="pl-s1">onClose</span>?: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">void</span><span class="pl-kos">;</span>
  <span class="pl-s1">originalCode</span>?: <span class="pl-s1">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">But when I write so (I get the error):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum PinStatus {
  New = 'new',
  Confirm = 'confirm',
  Unlock = 'unlock',
  Edit = 'edit',
}

interface IPinCodeParams {
  status: PinStatus;
  onComplete: () =&gt; void;
  onClose?: () =&gt; void;
  originalCode?: string;
}

export { PinStatus, IPinCodeParams };"><pre class="notranslate"><span class="pl-s1">enum</span> <span class="pl-v">PinStatus</span> <span class="pl-kos">{</span>
  New <span class="pl-c1">=</span> <span class="pl-s">'new'</span><span class="pl-kos">,</span>
  Confirm <span class="pl-c1">=</span> <span class="pl-s">'confirm'</span><span class="pl-kos">,</span>
  Unlock <span class="pl-c1">=</span> <span class="pl-s">'unlock'</span><span class="pl-kos">,</span>
  Edit <span class="pl-c1">=</span> <span class="pl-s">'edit'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>

<span class="pl-s1">interface</span> <span class="pl-v">IPinCodeParams</span> <span class="pl-kos">{</span>
  status: <span class="pl-v">PinStatus</span><span class="pl-kos">;</span>
  onComplete: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">void</span><span class="pl-kos">;</span>
  <span class="pl-s1">onClose</span>?: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">void</span><span class="pl-kos">;</span>
  <span class="pl-s1">originalCode</span>?: <span class="pl-s1">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>

<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-v">PinStatus</span><span class="pl-kos">,</span> <span class="pl-v">IPinCodeParams</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I have created some completely new projects, tried to rewrite this project several times, but nothing came out. I finally got this error anyway. Why do I get this error? How to fix it?</p>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): I don't know, but I use "babel-core": "7.0.0-bridge.0"</li>
<li>Node/npm/yarn version: v10.4.1 / v6.5.0 / v1.9.4</li>
<li>OS: Windows 10</li>
<li>How you are using Babel: cli</li>
</ul>