做动态路由的时候,这样绑定组件(写成静态的就没问题)
import(`@/views/platform/${file}`)
会报警告
Critical dependency: the request of a dependency is an expression
且使用dev运行的时候就会有这个错误,打包成dist放在服务器上运行就没问题
这个问题是我删除了项目node_modules 之后再次安装时出现的
import(`@/views/platform/${file}`)
会报警告
Critical dependency: the request of a dependency is an expression
且使用dev运行的时候就会有这个错误,打包成dist放在服务器上运行就没问题
这个问题是我删除了项目node_modules 之后再次安装时出现的









