-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
An error message states that the expected index.d.ts
file cannot be found:
yarn install v0.15.1
info No lockfile found.
[1/4] Resolving packages...
warning leaflet-omnivore > csv2geojson > [email protected]: Replaced by d3-dsv.
warning leaflet-omnivore > topojson > [email protected]: renamed to d3-queue
warning leaflet-omnivore > topojson > d3-geo-projection > brfs > static-module > through2 > xtend > [email protected]:
[2/4] Fetching packages...
warning [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
error ENOENT: no such file or directory, open 'E:\Documents\Visual Studio Projects\Opus4 Core\src\Opus.Web.Scripts\node_modules\@types\leaflet\index.d.ts'
at Error (native)
info Visit http://yarnpkg.com/en/docs/cli/install for documentation about this command.
Following this, installation appears to have failed and no lock file is produced. Running yarn
a second time results in a successful installation, however further problems are evident. If I then attempt to install a new @types/<dependency_name>
or remove an existing one, I get the same error again.
In the case of removing a dependency, it appears that the entire node_modules/@types
directory is deleted when one dependency is removed, resulting in all of the other TypeScript definitions being removed as well.
If the current behavior is a bug, please provide the steps to reproduce.
Attempt to initialise with the yarn
command when there are @types/<dependency_name>
dependencies in package.json
, for example:
{
"name": "opus.web.scripts",
"version": "1.0.0",
"private": true,
"devDependencies": {
"@types/enzyme": "^2.4.36",
"@types/leaflet": "^1.0.35",
"@types/mocha": "^2.2.32",
"@types/proj4": "^2.3.2",
"@types/proxyquire": "^1.3.27",
"@types/react": "^0.14.39",
"@types/react-dom": "^0.14.17",
"@types/sinon": "^1.16.31",
"axios": "^0.15.0",
"ceylon": "^0.8.0",
"cross-env": "^3.1.2",
...
},
"dependencies": {
...
},
"scripts": {
...
}
}
What is the expected behavior?
The @types/<dependency_name>
dependencies should be installed in node_modules/@types/<dependency_name>
and a lock file created.
Please mention your node.js, yarn and operating system version.
Node: v6.3.1
Yarn: 0.15.1
OS: Windows 10 x64