path should be a `path.relative()`d string, but got "./@types/index.d.ts"
See original GitHub issueyalc version: 1.0.0-pre.34
yarn version: 1.21.1
npm 6.4.1
node v10.13.0
This is my project directory:
├── @types
│ └── index.d.ts
├── CHANGELOG.md
├── README.md
├── package-lock.json
├── package.json
├── src
│ ........
├── tsconfig.json
├── watch.js
└── yarn.lock
When I execute the command yalc publish,I got those error:
(node:55687) UnhandledPromiseRejectionWarning: RangeError: path should be a `path.relative()`d string, but got "./@types/index.d.ts"
at throwError (/Users/heier/.config/yarn/global/node_modules/yalc/node_modules/ignore/index.js:337:9)
at checkPath (/Users/heier/.config/yarn/global/node_modules/yalc/node_modules/ignore/index.js:356:12)
at Ignore._test (/Users/heier/.config/yarn/global/node_modules/yalc/node_modules/ignore/index.js:473:5)
at Ignore.ignores (/Users/heier/.config/yarn/global/node_modules/yalc/node_modules/ignore/index.js:512:17)
at /Users/heier/.config/yarn/global/node_modules/yalc/src/copy.js:101:80
at Array.filter (<anonymous>)
at Object.<anonymous> (/Users/heier/.config/yarn/global/node_modules/yalc/src/copy.js:101:39)
at step (/Users/heier/.config/yarn/global/node_modules/yalc/src/copy.js:43:23)
at Object.next (/Users/heier/.config/yarn/global/node_modules/yalc/src/copy.js:24:53)
at fulfilled (/Users/heier/.config/yarn/global/node_modules/yalc/src/copy.js:15:58)
(node:55687) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:55687) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
No issues with yalc@1.0.0-pre.23
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
External typing file fails to resolve relative path to its own index ...
The problem goes away if I edit Sketch.d.ts to reference '../../../index.d.ts', so there seems to be some issue with it implicitly ...
Read more >Announcing TypeScript 4.7 RC - Microsoft Developer Blogs
This code works in CommonJS modules, but will fail in ES modules because relative import paths need to use extensions. As a result,...
Read more >modules/canvaskit/canvaskit/types/index.d.ts - skia - Google Git
Generate bounding box for shadows relative to path. Includes both the ambient and spot. * shadow bounds. This pairs with Canvas.drawShadow().
Read more >@lifaon/path - npm
This library provides a Path class to manage paths, somehow like the URL class. You'll be able to normalize, mutate, contact, etc... your...
Read more >Documentation - Module Resolution - TypeScript
js instead used a non-relative path and had the import var x = require("moduleB"); . Node would then try to resolve moduleB to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, it is solved in
yalc@1.0.0-pre.53.the latest should be pre.53