ThinkPHP: Class ‘think\\facade\\Filesystem‘ not found
not Class found thinkphp Facade filesystem think
2023-09-14 09:07:18 时间
问题描述
新项目报错
ThinkPHP: Class 'think\\facade\\Filesystem' not found
我保证我只改了数据库配置,其他代码都是原样拷贝过去的
查看 composer.lock 文件
{
"name": "topthink/framework",
"version": "v6.1.2",
}
找到他的2023年2月10日 发布的更新文档:ThinkPHP6.1.2版本发布——兼容PHP8.2
发现它删除了Filesystem
移除基础类中Filesystem申明属性
感觉和我的报错很相关了
解决方式
1、安装一个低版本的依赖
composer require topthink/framework=6.0.8
2、可以将版本锁定
修改前 composer.json
{
"require": {
"topthink/framework": "^6.0.8",
}
}
修改后 composer.json
{
"require": {
"topthink/framework": "6.0.8",
}
}
相关文章
- Linux 将一般的用户加入sudo组is_not_in_the_sudoers_file._This_incident_will_be_reported解决方法
- g++: command not found的解决
- Field creation not permitted in partner development mode
- OPPORTUNITIES_GET_ENTITY not implemented in data provider class
- Method 'GET_ENTITYSET' not implemented in data provider class - correct case
- Form of address 0001 not designated for organization - debug
- The specified executable is not a validapplication for this OS platform.
- [转]Class 'ThinkLog' not found
- npm打包报错TypeError: Class extends value undefined is not a constructor or null
- 已解决ERROR: pip‘s dependency resolver does not currently take into account all the packages that are i
- 关于 TypeError: can only concatenate str (not “int“) to str
- Android12之报错fatal error: ‘mediadrm/ICrypto.h‘ file not found
- IDEA启动项目报错:Caused by: java.io.FileNotFoundException: class path resource [.properties] cannot be opened because it does not exist
- IllegalArgumentException: Could not resolve resource location pattern [classpath .xml]: class path resource cannot be resolved to URL because it does not exist
- Check out if SQL Query is really hanged or not
- django 报错:‘staticfiles‘ is not a registered tag library. Must be one of: