justinlettau / ts-util-is Goto Github PK
View Code? Open in Web Editor NEWTypeScript typeof utility helper with no dependencies.
License: MIT License
TypeScript typeof utility helper with no dependencies.
License: MIT License
When upgrading to the last ts-util-is version, webpack starts emitting the following error during builds (on Debian and Windows) and the build fails:
Module not found: Error: Can't resolve './src/index' in 'C:\ox\node_modules\ts-util-is\dist'
Did you mean 'index.js'?
BREAKING CHANGE: The request './src/index' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
The build should finish without error or warning.
We'll keep using ts-util-is version 1.2.1 until the issue is resolved.
I am using ts-dot-prop
which uses ts-util-is
as a dependency. I can see in version 2.0.2
the extension was added but I am still getting the following error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'ts-util-is/dist/src/index' imported from ts-util-is/dist/index.js
Upon checking npm view ts-util-is
and downloading the tarball the extension is missing from dist/index.js
which is still showing: export * from './src/index';
. I confirmed I am on version 2.0.2
using the same tarball as linked above.
When I npm run build
locally I see the extension. Is it possible the extension is getting stripped through a deployment process?
When I patch the node_modules
to include the extension, it is working again.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@types/jest
, jest
, ts-jest
).github/workflows/ci.yml
actions/checkout v3
codecov/codecov-action v3
package.json
@types/jest ^27.0.2
@typescript-eslint/eslint-plugin ^5.2.0
@typescript-eslint/parser ^5.2.0
eslint ^8.1.0
eslint-config-prettier ^8.3.0
jest ^27.3.1
prettier ^2.4.1
pretty-quick ^3.1.1
standard-version ^9.3.2
ts-jest ^27.0.7
ts-node ^10.4.0
typescript ^4.4.4
node ^12.20.0 || ^14.13.1 || >=16.0.0
isArray should support readonly arrays
Change type signature to:
isArray(value: any): value is any[] | readonly any[]
PR coming.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.