hayes0724 / shopify-packer

Modern development tool for Shopify using Webpack 5. Easy to extend and customize, zero build config, compatible with Slate and existing websites.
https://hayes0724.github.io/shopify-packer/
MIT License
181 stars 37 forks source link

Facing issue #140

Open Codecrewtech opened 3 years ago

Codecrewtech commented 3 years ago

Discussed in https://github.com/hayes0724/shopify-packer/discussions/139

Originally posted by **Codecrewtech** September 22, 2021 ⠋ Compiling...C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\@hayes0724\shopify-packer\cli\commands\build.js:19 if (err) throw err; ^ Error: Compiling RuleSet failed: Unexpected property test in condition (at ruleSet[1].rules[1].resource.test: resource => { currentResource = resource return true }) at RuleSetCompiler.error (C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\RuleSetCompiler.js:373:10) at RuleSetCompiler.compileCondition (C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\RuleSetCompiler.js:309:17) at C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\BasicMatcherRulePlugin.js:29:40 at Hook.eval [as call] (eval at create (C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\tapable\lib\HookCodeFactory.js:19:10), :19:1) at RuleSetCompiler.compileRule (C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\RuleSetCompiler.js:177:19) at C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\RuleSetCompiler.js:154:9 at Array.map () at RuleSetCompiler.compileRules (C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\RuleSetCompiler.js:153:16) at RuleSetCompiler.compileRule (C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\RuleSetCompiler.js:184:30) at C:\Users\codec\AppData\Local\Yarn\Data\global\node_modules\webpack\lib\rules\RuleSetCompiler.js:154:9 I am facing this issue while running yarn deploy command.
marioloncarek commented 3 years ago

can you provide node -v packer -v npm - v

Codecrewtech commented 3 years ago

can you provide node -v packer -v npm - v

node -v 14.7.4 packer -v 2.2.0 npm - v 6.14.14

Codecrewtech commented 3 years ago

S D:\directory> yarn deploy yarn run v1.22.11 $ packer build && packer deploy --nodelete Custom webpack configuration found D:\directory\prod.config.js D:\directory\node_modules\schema-utils\dist\validate.js:105 throw new _ValidationError.default(errors, schema, configuration); ^

ValidationError: Invalid options object. Ignore Plugin has been initialized using an options object that does not match the API schema.

FAcing this issue now