Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.
This repository was archived by the owner on May 25, 2021. It is now read-only.

Can't find "styled-components" module from build  #246

@sunjae-kim

Description

@sunjae-kim

I have deleted node_modules directory and installed the packages again for several times, and I keep getting below error.

I can install styled-components package on my project to resolve the problem, but I am using different CSS library.

Is there anyway to resolve the problem without installing the package on my project?

ModuleNotFoundError: Module not found: Error: Can't resolve 'styled-components' in '.../node_modules/@inrupt/solid-react-components/build'
    at .../node_modules/webpack/lib/Compilation.js:925:10
    at ...node_modules/webpack/lib/NormalModuleFactory.js:401:22
    at .../node_modules/webpack/lib/NormalModuleFactory.js:130:21
    at .../node_modules/webpack/lib/NormalModuleFactory.js:224:22
    at .../node_modules/neo-async/async.js:2830:7
    at .../node_modules/neo-async/async.js:6877:13
    at .../node_modules/webpack/lib/NormalModuleFactory.js:214:25
    at .../node_modules/enhanced-resolve/lib/Resolver.js:213:14
    at .../node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (.../node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at .../node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
    at .../node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (.../node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
    at .../node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (.../node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
    at .../node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43

I changed my local project path to ... from above log.

Package.json

dependencies: {
  "@inrupt/solid-react-components": "^0.5.3"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions