ERROR in /root/fiora/client/modules/Chat/Expression.tsx
[tsl] ERROR in /root/fiora/client/modules/Chat/Expression.tsx(98,25)
TS2322: Type '{ className: any; src: any; alt: string; key: any; referrerPolicy: string; onClick: (e: any) => void; }' is not assignable to type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
Property 'referrerPolicy' does not exist on type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
ERROR in /root/fiora/client/modules/Chat/Message/ImageMessage.tsx
[tsl] ERROR in /root/fiora/client/modules/Chat/Message/ImageMessage.tsx(82,25)
TS2322: Type '{ className: any; src: string; alt: string; width: number; height: number; onClick: () => void; referrerPolicy: string; }' is not assignable to type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
Property 'referrerPolicy' does not exist on type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
npm run build 提示ERROR:
ERROR in /root/fiora/client/modules/Chat/Expression.tsx [tsl] ERROR in /root/fiora/client/modules/Chat/Expression.tsx(98,25) TS2322: Type '{ className: any; src: any; alt: string; key: any; referrerPolicy: string; onClick: (e: any) => void; }' is not assignable to type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
Property 'referrerPolicy' does not exist on type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
ERROR in /root/fiora/client/modules/Chat/Message/ImageMessage.tsx [tsl] ERROR in /root/fiora/client/modules/Chat/Message/ImageMessage.tsx(82,25) TS2322: Type '{ className: any; src: string; alt: string; width: number; height: number; onClick: () => void; referrerPolicy: string; }' is not assignable to type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
Property 'referrerPolicy' does not exist on type 'DetailedHTMLProps<ImgHTMLAttributes, HTMLImageElement>'.
Build complete.
npm run move-dist 提示:
mv: cannot stat 'dist/fiora/': No such file or directory npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! fiora@0.0.1 move-dist: `rm -rf public/audio && rm -rf public/avatar && rm -rf public/css && rm -rf public/fonts && rm -rf public/img && rm -rf public/js && mv -f dist/fiora/ public` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the fiora@0.0.1 move-dist script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-11-29T12_29_49_233Z-debug.log