shopware - (Shopware 6) Using hot-proxy with a plugin with js files
问题描述
When I try to use ./psh.phar storefront: hot-proxy or ./psh.phar storefront: hot. I have this error in the console
(node: 1078) UnhandledPromiseRejectionWarning: WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.entry ['storefront'] should not contain the item '/app/custom/plugins/MyCustomPlugin/src/Resources/app/storefront/src/main.js' twice.
When I remove main.js from the plugin the problem does not occur. How can I use js files in plugins?
解决方案
If you are calling this specific bundle from any theme.json file, remove that.
推荐阅读
- cassandra - 第三个 Cassandra 节点有不同的负载
- haskell - 这种处理哈希冲突的方法是新的/独特的吗?
- android - 我如何为 Nexus 5x 构建 android 4.4.4_r1
- vba - VBA 运行时错误 424 使用 SmartArt 节点时需要对象
- android - NestedScrollView 中的 RecyclerView 填充剩余空间
- java - 如何在 Drools 中处理动态 Json/class?
- rest - 代理授权不适用于 Jersey 2.x(2.25.1) 的 JettyConnectorProvider
- javascript - React-native 地图等待 promise.all
- c# - Asp.net Core 在一个过滤器中添加多个操作过滤器
- javascript - 将 JS 添加到 HTML