You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(load-component): improve error handling in getEntryFile function
- Enhance the getEntryFile function to include a logger for better error tracking.
- Wrap the file system operations in a try-catch block to log errors before throwing a descriptive error message.
- Update the call to getEntryFile in buildComponentInstance to pass the logger from params.
Signed-off-by: zxypro1 <1018995004@qq.com>
Signed-off-by: Zone Tome <43384183+zxypro1@users.noreply.github.com>
'The component cannot be required. Please check whether the setting of the component entry file is correct. In the current directory, first look for main under the package json file, secondly look for compiler options out dir under the tsconfig json file, thirdly look for src index js, and finally look for index js',
'The component cannot be required. Please check whether the setting of the component entry file is correct. In the current directory, first look for main under the package json file, secondly look for compiler options out dir under the tsconfig json file, thirdly look for src index js, and finally look for index js',
0 commit comments