appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: client compilation error: Toaster

Open fliot opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

When compiling the client, I get such error

Failed to compile.

TS2307: Cannot find module 'components/ads/Toast' or its corresponding type declarations.
    3 |
    4 | import { collabSetAppEditors } from "actions/appCollabActions";
  > 5 | import { Toaster } from "components/ads/Toast";
      |                         ^^^^^^^^^^^^^^^^^^^^^^
    6 | import {
    7 |   createMessage,
    8 |   INFO_VERSION_MISMATCH_FOUND_RELOAD_REQUEST,

Please note my environement was successfully compiling the client in version 1.8.5, and I face this issue for 1.8.10 and 1.8.11.

Steps To Reproduce

cd app/client
yarn add @sentry/webpack-plugin --dev
npx browserslist@latest --update-db
./build.sh

Public Sample App

No response

Issue video log

No response

Version

1.8.11

fliot avatar Dec 05 '22 17:12 fliot

@fliot is the codebase up to date? Because line number 5 looks different in the screenshot you have attached. https://github.com/appsmithorg/appsmith/blob/release/app/client/src/sagas/WebsocketSagas/handleAppLevelSocketEvents.tsx

albinAppsmith avatar Dec 07 '22 06:12 albinAppsmith

Indeed, my very bad..... Very good seen, Great thanks for your support.

fliot avatar Dec 09 '22 16:12 fliot