This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 98
import { type T } from 'non-lodash' #180
Labels
Comments
Hi @ckknight! Is that typing TypeScript or Flow? |
Flow |
I have similar issue with babel@^7-beta.40
causes
with
basic babelrc config to reproduce
I believe this issue may be related babel/babel#7233 |
Closed
I have related issue with TypeScript: import { Dictionary } from 'lodash';
type ColumnIndexes = Dictionary<number>; ERROR in ./node_modules/@ihme/common/utility/data/index.ts
Module build failed (from ./node_modules/babel-loader/lib/index.js):
SyntaxError: /Users/piotrek/Make/ihme-gilead/node_modules/@ihme/common/utility/data/index.ts: The 'lodash' method `Dictionary` is not a known module.
Please report bugs to https://github.com/lodash/babel-plugin-lodash/issues.
...
> 13 | type ColumnIndexes = Dictionary<number>; |
I have a similar issue with typescript and Is there a way to configure a set of modules for which errors should be ignored? |
For anyone searching for a workaround I'm currently using this plugin: https://www.npmjs.com/package/babel-plugin-transform-imports I'm able to |
Hi, |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Although I can't seem to reproduce this with the
lodash
module, it affects others. I suspect that has to do with the differentiation betweenpkgStore
s where.isLodash()
is used to differentiate.Using the following
.babelrc
Throws the following error:
SyntaxError: The 'recompose' method `HOC` is not a known module.
A workaround
works as expected, but has the downside of not being able to import functions and types simultaneously.
The text was updated successfully, but these errors were encountered: