Skip to content

cordDifference.js:5 Uncaught TypeError: styledComponents_browser_cjs.styled is not a function at RecordDifference.js:5:14  #19

Closed
@ivictbor

Description

@ivictbor
(api) ivan@IvanPC:~/code/xxxxxplatform/bo (ajsnew)$ npm ls --all | grep styled-com
│ │ ├─┬ styled-components@5.3.9
│ │ │ ├─┬ babel-plugin-styled-components@2.1.1
│ │ │ │ └── styled-components@5.3.9 deduped

in docs for 5.3.9 I see that default import should be used:

import styled from 'styled-components';

But here is a a partial import:

image

Using the next versions:

 "adminjs": "^7.0.0",
 "@adminjs/logger": "^5.0.0",
 "@adminjs/express": "^6.0.0",
"@adminjs/import-export": "^3.0.0",
"@adminjs/mongoose": "^4.0.0",
"@adminjs/passwords": "^4.0.0",
"@adminjs/themes": "^1.0.0",
"@devforth/adminjs-upload": "^4.0.4",
      

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions