solid-react-components icon indicating copy to clipboard operation
solid-react-components copied to clipboard

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

Open sunjae-kim opened this issue 5 years ago • 0 comments

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"
}

sunjae-kim avatar May 12 '20 17:05 sunjae-kim