Attempted import error: 'default' is not exported from '../assertThisInitialized/_index.mjs'

Shivprsad Sammbhare

Suddenly my react is application throwing this error

./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
Attempted import error: 'default' is not exported from '../assertThisInitialized/_index.mjs'.

Earlier it was working but today it is throwing error

package.json

"react": "^16.8.6",      
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.2",
"babel-jest": "^24.8.0",
"babel-loader": "^7",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.26.0",
"webpack": "^4.35.3",
Shivprsad Sammbhare

I got the solution. Add "@babel/runtime@7.5.0" under resolutions in package.json to force babel-preset-react-app to use @babel/runtime@7.5.0

 "resolutions": {
    "**/@babel/runtime": "7.5.0"
  },

Collected from the Internet

Please contact debugcn@gmail.com to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Receiving "Attempted import error:" in react app

From Java

Attempted relative import with no known parent package

From Java

Attempted import error: 'uuid' does not contain a default export (imported as 'uuid') In React

From Java

"moment" has no exported member 'default'

From Java

React Bootstrap error: 'AccordionCollapseProps' is not exported from './AccordionCollapse'

From Java

Upgrade to Firebase JS 8.0.0: Attempted import error: 'app' is not exported from 'firebase/app' (imported as 'firebase')

From Dev

Getting Attempted relative import in non-package error in spite of having __init__.py

From Dev

Attempted to access index in vector

From Dev

Is there a way to control the default pixel sizes of images exported from RStudio?

From Dev

UIImages exported as movie error

From Dev

How to import a JSON file that is exported from Neo4j into D3

From Dev

Exported excel file from datagridview shows error when opened VB

From Dev

Import CSP blob exported from .NET into python pyCrypto

From Dev

What is the correct way to import C header functions into an R package when they are exported from another?

From Dev

How to import everything exported from a file with ES2015 syntax? Is there a wildcard?

From Dev

Is an embedded error exported?

From Dev

How import java classes inside the default package from the default package

From Dev

Getting error importing into phpMyAdmin a database exported from phpMyAdmin

From Dev

Attempted import error: 'default' is not exported from '../assertThisInitialized/_index.mjs'

From Dev

not able to require default exported function from typescript file in nodejs

From Dev

Getting "ImportError: attempted relative import with no known parent package" when running from Python Interpreter

From Dev

Why is the default exported component is giving no-undef error in React JS?

From Dev

Attempted import error: 'getMoviesList' is not exported from './actions'; error in react redux

From Dev

How to import a JSON file that is exported from Neo4j into D3

From Dev

Attempted relative import in non-package error in current structure

From Dev

Import a exported dict into python

From Dev

What is the correct way to import C header functions into an R package when they are exported from another?

From Dev

How import java classes inside the default package from the default package

From Dev

How to export data including large objects from Postgres and later import the exported data to Greenplum

Related Related

  1. 1

    Receiving "Attempted import error:" in react app

  2. 2

    Attempted relative import with no known parent package

  3. 3

    Attempted import error: 'uuid' does not contain a default export (imported as 'uuid') In React

  4. 4

    "moment" has no exported member 'default'

  5. 5

    React Bootstrap error: 'AccordionCollapseProps' is not exported from './AccordionCollapse'

  6. 6

    Upgrade to Firebase JS 8.0.0: Attempted import error: 'app' is not exported from 'firebase/app' (imported as 'firebase')

  7. 7

    Getting Attempted relative import in non-package error in spite of having __init__.py

  8. 8

    Attempted to access index in vector

  9. 9

    Is there a way to control the default pixel sizes of images exported from RStudio?

  10. 10

    UIImages exported as movie error

  11. 11

    How to import a JSON file that is exported from Neo4j into D3

  12. 12

    Exported excel file from datagridview shows error when opened VB

  13. 13

    Import CSP blob exported from .NET into python pyCrypto

  14. 14

    What is the correct way to import C header functions into an R package when they are exported from another?

  15. 15

    How to import everything exported from a file with ES2015 syntax? Is there a wildcard?

  16. 16

    Is an embedded error exported?

  17. 17

    How import java classes inside the default package from the default package

  18. 18

    Getting error importing into phpMyAdmin a database exported from phpMyAdmin

  19. 19

    Attempted import error: 'default' is not exported from '../assertThisInitialized/_index.mjs'

  20. 20

    not able to require default exported function from typescript file in nodejs

  21. 21

    Getting "ImportError: attempted relative import with no known parent package" when running from Python Interpreter

  22. 22

    Why is the default exported component is giving no-undef error in React JS?

  23. 23

    Attempted import error: 'getMoviesList' is not exported from './actions'; error in react redux

  24. 24

    How to import a JSON file that is exported from Neo4j into D3

  25. 25

    Attempted relative import in non-package error in current structure

  26. 26

    Import a exported dict into python

  27. 27

    What is the correct way to import C header functions into an R package when they are exported from another?

  28. 28

    How import java classes inside the default package from the default package

  29. 29

    How to export data including large objects from Postgres and later import the exported data to Greenplum

HotTag

Archive