From 8e31710604bb9ad35e3e19829607145872393318 Mon Sep 17 00:00:00 2001 From: Johannes <72809645+jobenjada@users.noreply.github.com> Date: Thu, 18 Apr 2024 12:22:21 +0200 Subject: [PATCH] fix: remove the --save flag because deprecated (#2474) Co-authored-by: Matti Nannt --- .../app/docs/getting-started/framework-guides/page.mdx | 6 +++--- .../settings/setup/components/SetupInstructions.tsx | 4 ++-- .../(app)/onboarding/components/inapp/SetupInstructions.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx b/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx index 7778813adf..6a04df4bcb 100644 --- a/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx +++ b/apps/formbricks-com/app/docs/getting-started/framework-guides/page.mdx @@ -76,7 +76,7 @@ Install the Formbricks SDK using one of the package managers ie `npm`,`pnpm`,`ya ```shell {{ title: 'npm' }} -npm install --save @formbricks/js +npm install @formbricks/js ``` ```shell {{ title: 'pnpm' }} pnpm add @formbricks/js @@ -153,7 +153,7 @@ Code snippets for the integration for both conventions are provided to further a ```shell {{ title: 'npm' }} -npm install --save @formbricks/js +npm install @formbricks/js ``` ```shell {{ title: 'pnpm' }} pnpm add @formbricks/js @@ -283,7 +283,7 @@ We will make sure the SDK is only loaded and used on the client side, as it's no ```shell {{ title: 'npm' }} -npm install --save @formbricks/js +npm install @formbricks/js ```` ```shell {{ title: 'pnpm' }} diff --git a/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx b/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx index 442042607b..28efc6eab8 100644 --- a/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/settings/setup/components/SetupInstructions.tsx @@ -32,9 +32,9 @@ export default function SetupInstructions({ {activeTab === "npm" ? (

Step 1: Install with NPM or Yarn

- npm install @formbricks/js --save + npm install @formbricks/js

or

- yarn add @formbricks/js --save + yarn add @formbricks/js

Step 2: Initialize widget

Import Formbricks and initialize the widget in your Component (e.g. App.tsx):

{`import formbricks from "@formbricks/js"; diff --git a/apps/web/app/(app)/onboarding/components/inapp/SetupInstructions.tsx b/apps/web/app/(app)/onboarding/components/inapp/SetupInstructions.tsx index 423da1a74b..287675ba9d 100644 --- a/apps/web/app/(app)/onboarding/components/inapp/SetupInstructions.tsx +++ b/apps/web/app/(app)/onboarding/components/inapp/SetupInstructions.tsx @@ -56,11 +56,11 @@ export default function SetupInstructionsOnboarding({ {activeTab === "npm" ? (
- npm install @formbricks/js --save + npm install @formbricks/js

or

- yarn add @formbricks/js --save + yarn add @formbricks/js

Import Formbricks and initialize the widget in your Component (e.g. App.tsx):