llamacoder icon indicating copy to clipboard operation
llamacoder copied to clipboard

Error in Generation of test app

Open WANI12 opened this issue 1 year ago • 2 comments

error Something went wrong /App.tsx: Could not find dependency: '@headlessui/react' relative to '/App.tsx' (2:0) 1 | import React, { useState } from 'react'; > 2 | import { Tab } from '@headlessui/react'; ^ 3 | 4 | function classNames(...classes: string[]) { 5 | return classes.filter(Boolean).join(' ') .

WANI12 avatar Nov 20 '24 07:11 WANI12

getting error, in code for a given query!!

sriramsowmithri9807 avatar Dec 20 '24 08:12 sriramsowmithri9807

This happens as the code generated uses external packages and those packages are not available in Sandpack environment. This issue will be resolved by either

  1. Instructing LLM to not use external packages or
  2. Replace Sandpack with StackBlitz. (I'm leaning for this option)

@Nutlope Do you have any timeline for this update?

tulga-bytes avatar Dec 24 '24 03:12 tulga-bytes