https://stackoverflow.com/questions/51100401/typescript-image-import
출처(링크)
Typescript image import
I found a solution here: Webpack & Typescript image import But i am getting error for this: [ts] Types of property 'src' are incompatible. Type 'typeof import("*.png")' is not assignable t...
stackoverflow.com
For react-native
create global.d.ts file on project root folder and just add next lines there
declare module '*.png' {
const value: import('react-native').ImageSourcePropType;
export default value;
}
'IT' 카테고리의 다른 글
Error: Unable to find git in your PATH. (0) | 2023.02.08 |
---|---|
flutter unable to find bundled java version. (0) | 2023.02.07 |
[Git] There isn’t anything to compare 해결 방법 (0) | 2023.01.31 |
jsp tech (0) | 2022.12.26 |
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date (0) | 2022.07.15 |