Open chindaku9531 opened 3 months ago
This issue also happens when deploying the app from GitHub Actions. The Answer.tsx file from this commit introduces the issue: https://github.com/microsoft/sample-app-aoai-chatGPT/pull/708
npm i react-syntax-highlighter
and npm i --save-dev @types/react-syntax-highlighter
allowed me to build the frontend.
https://github.com/microsoft/sample-app-aoai-chatGPT/pull/739/files
This also resolved the issue for me.
Describe the bug Failed to build frontend from local with an error "npm WARN deprecated react-uuid@2.0.0: Package no longer supported."
src/components/Answer/Answer.tsx:15:42 - error TS2307: Cannot find module 'react-syntax-highlighter' or its corresponding type declarations. 15 import {Prism as SyntaxHighlighter} from 'react-syntax-highlighter';
Found 2 errors in the same file, starting at: src/components/Answer/Answer.tsx:15 Failed to build frontend
To Reproduce Steps to reproduce the behavior:
Expected behavior Web app should be started successfully.