Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found #130

Open
lagroms opened this issue Apr 5, 2024 · 1 comment
Open

Module not found #130

lagroms opened this issue Apr 5, 2024 · 1 comment

Comments

@lagroms
Copy link

lagroms commented Apr 5, 2024

When creating a React functional component and a SCSS file, an error appears as "module not found" for the SCSS file.

ezgif-3-7bbbae060b

My settings are the below

	"folderTemplates.structures": [
		{
			"name": "React Functional Component Template",
			"omitParentDirectory": true,
			"structure": [
				{
					"fileName": "<FTName | capitalize>.jsx",
					"template": "React Functional Component"
				},
				{
					"fileName": "<FTName | capitalize>.module.scss",
					"template": "SCSS Module"
				}
			]
		}
	],
	"folderTemplates.fileTemplates": {
		"React Functional Component": [
			"import styles from './<FTName | capitalize>.module.scss';",
			"",
			"const <FTName | capitalize> = () => {",
			"  return <div className={styles.container}><FTName | capitalize></div>;",
			"};",
			"",
			"export default <FTName | capitalize>"
		],
		"SCSS Module": [".container {", "", "}"]
	},
@Huuums
Copy link
Owner

Huuums commented Apr 5, 2024

Hi @lagroms,

does the error persist for a created file after you reload VSCode? I'm not sure we're able to help here because the file is created as configured in the template.

The file seems to exist so I'm not sure why VSCode tells you it cannot find it.

Could you create a minimal repo that reproduces this error so we can take a look as to what might be happening?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants