Hello,
I am using Snowpack, my package.json looks something like this:
{
"name": "app",
"version": "0.0.1",
"description": "",
"main": "src/index.js",
"scripts": {
"start": "snowpack dev",
"build": "snowpack build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"esbuild": "^0.12.5",
"snowpack": "^3.5.2",
"tslib": "^2.2.0",
"typescript": "^4.3.2"
},
"dependencies": {
"optimal-select": "^4.0.1"
}
}
When I try to npm start I get the following error:
[snowpack] We resolved "optimal-select" to ./node_modules/optimal-select/src/index.js, but the file does not exist on disk.
In node_modules/optimal-select I can't find the src folder:

By looking into the package.json file I can see the following declaration:
…
"module": "src/index.js",
…
If I change it to
…
"module": "lib/index.js",
…
it works.
Is it the right thing to do?
Hello,
I am using Snowpack, my package.json looks something like this:
When I try to
npm startI get the following error:In
node_modules/optimal-selectI can't find thesrcfolder:By looking into the package.json file I can see the following declaration:
If I change it to
it works.
Is it the right thing to do?