Skip to content

Debugging React with Fluent UI template #13689

Closed
@DebasishChaudhuriDVG

Description

@DebasishChaudhuriDVG

Describe the bug
Simply running teams-toolkit v 5.14 (and 5.14.1) and creating a sample tab app with the React with Fluent UI template errors out while debugging at the deploy stage.

To Reproduce
Steps to reproduce the behavior:

  1. Create a teams-toolkit sample tab app with React with Fluent UI template
  2. Click on local debug and choose "Debug in teams (Edge)"
  3. See error

failed to load config from ..\vite.config.ts
error when starting dev server:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'vite' imported from ..\node_modules.vite-temp\vite.config.ts.timestamp-1744638469766-48385f862a37f.mjs
at new NodeError (node:internal/errors:405:5)
at packageResolve (node:internal/modules/esm/resolve:916:9)
at moduleResolve (node:internal/modules/esm/resolve:973:20)
at defaultResolve (node:internal/modules/esm/resolve:1193:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:404:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:373:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:250:38)
at ModuleWrap. (node:internal/modules/esm/module_job:76:39)
at link (node:internal/modules/esm/module_job:75:36)

Vite is present in the package.json but somehow the node modules are being over-written once the deployment process runs via
npm install --no audit and there is no vite in the node modules folder

Image

Expected behavior
The app is ready for preview

Screenshots

Image

VS Code Extension Information (please complete the following information):

  • OS: Windows 11
  • Version 5.14.1

Additional context
This used to work fine a month ago, hence I went back to the previous version 5.14 from 5.14.1 but still no success. Any help/guidance is highly appreciated. Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions