Skip to content

Conversation

@loginov-rocks
Copy link
Contributor

@loginov-rocks loginov-rocks commented May 1, 2020

Description

To fix the following:

node_modules/react-redux-firebase/index.d.ts:1:8 - error TS1259: Module '"/Users/danila/Projects/MyProject/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag

1 import React from 'react'
         ~~~~~

  node_modules/@types/react/index.d.ts:64:1
    64 export = React;
       ~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

Check List

If not relevant to pull request, check off as complete

  • All tests passing
  • Docs updated with any changes or examples if applicable
  • Added tests to ensure new feature(s) work properly

Relevant Issues

To fix the following:

node_modules/react-redux-firebase/index.d.ts:1:8 - error TS1259: Module '"/Users/danila/Projects/GitHub/Projects/Portfolio/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag

1 import React from 'react'
         ~~~~~

  node_modules/@types/react/index.d.ts:64:1
    64 export = React;
       ~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
@codecov
Copy link

codecov bot commented May 1, 2020

Codecov Report

Merging #927 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #927   +/-   ##
=======================================
  Coverage   88.87%   88.87%           
=======================================
  Files          29       29           
  Lines         791      791           
=======================================
  Hits          703      703           
  Misses         88       88           

@prescottprue prescottprue changed the base branch from master to v3.4.0 May 2, 2020 04:58
@prescottprue prescottprue changed the title Fix React import in index.d.ts fix(types): use correct import for react in types May 2, 2020
@prescottprue prescottprue merged commit ea482dc into prescottprue:v3.4.0 May 2, 2020
@prescottprue prescottprue mentioned this pull request May 2, 2020
3 tasks
prescottprue added a commit that referenced this pull request May 2, 2020
* chore(ci): add package version check stage to prevent failed builds if version is already released
* feat(types): generic types for firestore methods (#920) - @puppybits
* fix(types): use correct import for react in types (#927) - @loginov-rocks
* chore(types): remove unused AppTypes import

Co-authored-by: Bobby <[email protected]>
Co-authored-by: Danila Loginov <[email protected]>
prescottprue added a commit that referenced this pull request May 2, 2020
* chore(ci): add package version check stage to prevent failed builds if version is already released
* feat(types): generic types for firestore methods (#920) - @puppybits
* fix(types): use correct import for react in types (#927) - @loginov-rocks
* chore(types): remove unused AppTypes import

Co-authored-by: Bobby <[email protected]>
Co-authored-by: Danila Loginov <[email protected]>
@loginov-rocks loginov-rocks deleted the patch-2 branch May 2, 2020 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants