我创建了2个功能模块(PagesSharedModule&HomeModule).
现在,我正在尝试使用组件PagesSharedModule模板内部的导出组件,HomeModule我收到此错误:
ERROR Error: Uncaught (in promise): Error: Template parse errors: 'app-main-menu' is not a known element:
1. If 'app-main-menu' is an Angular component, then verify that it is part of this module.
2. If 'app-main-menu' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR
->]<app-main-menu></app-main-menu>"): ng:///HomeModule/HomeComponent.html@0:0 Error: Template parse errors: 'app-main-menu' is not a known element:
1. If 'app-main-menu' is an Angular …Run Code Online (Sandbox Code Playgroud) typescript angular-module angular-components angular angular6
我正在开发一个自定义CLI命令,我想知道从PHP代码调用其他命令的最佳方法是什么(没有shell_exec()或类似命令).
例如:
当运行"php bin/magento my:custom:command"时,它会做它的事情并最终运行"php bin/magento cache:flush".
有任何想法吗?
谢谢.
当我运行“作曲家更新”时,出现此错误:
Writing lock file
Generating autoload files
[ErrorException]
chmod(): Operation not permitted
Run Code Online (Sandbox Code Playgroud)
*它与sudo一起工作得很好,但后来我必须重置所有者和权限,这真的很烦人......
**我还尝试将〜/ .composer的所有者重置为777的www-data,没有效果。
***我使用的是 Ubuntu 16.04 LTS + Apache/2.4.18 & php7.0.26
angular ×1
angular6 ×1
composer-php ×1
magento ×1
magento2 ×1
permissions ×1
php ×1
typescript ×1
ubuntu-16.04 ×1