Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 7d57c49

Browse files
Removed module resolution warning from README
1 parent 677bda6 commit 7d57c49

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,6 @@ fetch(style)
6565
.then(css => console.log(css));
6666
```
6767

68-
## Troubleshooting
69-
Note: if you see an error in console like this:
70-
```js
71-
node:internal/process/esm_loader:94
72-
internalBinding('errors').triggerUncaughtException(
73-
^
74-
75-
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'node_modules\lodash\fp' is not supported resolving ES modules imported from node_modules\@squirrelnetwork\esbuild-sass-modules-plugin\src\esbuild-sass-modules-plugin.class.js
76-
Did you mean to import lodash/fp.js?
77-
at new NodeError (node:internal/errors:371:5)
78-
at finalizeResolution (node:internal/modules/esm/resolve:412:17)
79-
at moduleResolve (node:internal/modules/esm/resolve:932:10)
80-
at defaultResolve (node:internal/modules/esm/resolve:1044:11)
81-
at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
82-
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
83-
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
84-
at link (node:internal/modules/esm/module_job:75:36) {
85-
code: 'ERR_UNSUPPORTED_DIR_IMPORT',
86-
url: 'file:///.../node_modules/lodash/fp'
87-
}
88-
```
89-
Then you need to
90-
[add the flag](https://nodejs.org/api/cli.html#cli_experimental_specifier_resolution_mode)
91-
`--experimental-specifier-resolution=node` when running node.
92-
9368
## Documentation
9469

9570
See the [wiki](https://github.com/Squirrel-Network/esbuild-sass-modules-plugin/wiki/)

0 commit comments

Comments
 (0)