0

i'm following figma widget creation video from office hours playlist but i can't use the npm run dev command i've tried using a the suggested change by using "" everywhere but i can't get it to work

here's my error

PS C:\Users***\Desktop\figma> npm run dev npm ERR! Missing script: "dev" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users**\AppData\Local\npm-cache_logs\2022-11-25T10_49_13_389Z-debug-0.log

my package.json file

{
  "name": "widget",
  "version": "1.0.0",
  "description": "Widget",
  "scripts": {
    "test": "npm run tsc && npm run build",
    "format": "prettier --write .",
    "tsc": "tsc --noEmit -p widget-src",
    "build": "npm run bundle -- --minify",
    "bundle": "esbuild widget-src/code.tsx --bundle --outfile=dist/code.js",
    "dev": "concurrently -n tsc,build 'npm run tsc -- --preserveWatchOutput --watch' 'npm run bundle -- --watch'"
  },
  "author": "Figma",
  "license": "MIT License",
  "dependencies": {},
  "devDependencies": {
    "@figma/plugin-typings": "*",
    "@figma/widget-typings": "*",
    "concurrently": "^6.3.0",
    "esbuild": "^0.13.5",
    "prettier": "^2.3.2",
    "typescript": "^4.4.2"
  }
}

Salil
  • 19
  • 3

0 Answers0