question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve module `./sidebar.module.scss` from `/*****/sidebar.module.js`: The module `./sidebar.module.scss` could not be found from `/*****/sidebar.module.js`. Indeed, none of these files exist:

See original GitHub issue

After following the documentation, i have an error when importing the scss file : import sidebarStyles from "./sidebar.module.scss"; of course the files exist and in the right path, double checked everything multiple times.

the complete error :

error: bundling failed: Error: Unable to resolve module ./sidebar.module.scss from /Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/app/src/sidebar/sidebar.module.js: The module ./sidebar.module.scss could not be found from /Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/app/src/sidebar/sidebar.module.js. Indeed, none of these files exist:

/Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/app/src/sidebar/sidebar.module.scss(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx) /Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/app/src/sidebar/sidebar.module.scss/index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx) at ModuleResolver.resolveDependency (/Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15) at ResolutionRequest.resolveDependency (/Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (/Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/node-haste/DependencyGraph.js:283:16) at Object.resolve (/Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/lib/transformHelpers.js:261:42) at /Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/DeltaBundler/traverseDependencies.js:399:31 at Array.map () at resolveDependencies (/Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:18) at /Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/DeltaBundler/traverseDependencies.js:269:33 at Generator.next () at asyncGeneratorStep (/Users/knewtone/OneDrive/knewtone.com/projects/WorkSpace/app/keina/node_modules/metro/src/DeltaBundler/traverseDependencies.js:87:24)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kristerkaricommented, Aug 14, 2019

You’re welcome 😃

Do you have a patreon account?

I don’t, but there are plenty of other open source projects and people working with open source that need support, so please donate to them instead. 👍

1reaction
kristerkaricommented, Aug 14, 2019

So @cobyfielding you need to add the sourceExts field to app.json to fix the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't import CSS/SCSS modules. TypeScript says "Cannot ...
I was using the typescript-plugin-css-modules plugin, was getting the error still on build, and this resolved it for me.
Read more >
How to fix TypeScript cannot find module CSS/SCSS in Next.js
Solution: Declare a new module​​ ts file. Inside that file add the following declaration. declare module '*. scss';
Read more >
Cannot Find Module 'XXX.scss' or Its Corresponding Type ...
Question. When using CSS Module in Typescript + Webpack + Sass projects, you can use CSS modules normally, but vscode always prompts cannot...
Read more >
Documentation: MultiQC
Once conda is installed, you can create a Python environment with the ... MultiQC uses these to find output; for example, the FastQC...
Read more >
Searching: getElement*, querySelector*
If an element has the id attribute, we can get the element using ... This method is indeed powerful, because any CSS selector...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found