Open in-session opened 2 years ago
Hi @in-session
Having same problem here, did you find a solution?
We have the same issue on 2.4.2.
Probably the issue is with the npm version We used 2.8.0 and now its updated to 2.11.0 and with this version is not working.
This is probably to do with the anonymous AMD detection. Are you still getting the error with magepack version 2.11.2?
yes mate, the error still occurs with magepack version 2.11.2
Magento 2.4.6 Magepack 2.11.2
Error still occurs.
Funny how I have a mirror store on same versions that runs the compilation with no problems.
ℹ Collecting modules for bundle "category". 13:39:12
ERROR Evaluation failed: Error: Mismatched anonymous define() module: function(){return fun ............
https://requirejs.org/docs/errors.html#mismatch
at makeError (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:17:53)
at intakeDefines (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:81:132)
at localRequire (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:104:1)
at Object.defContext.require (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:190:401)
at requirejs (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:123:16)
at __puppeteer_evaluation_script__:3:17
at new Promise (<anonymous>)
at __puppeteer_evaluation_script__:2:13
https://requirejs.org/docs/errors.html#mismatch
at makeError (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:17:53)
at intakeDefines (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:81:132)
at localRequire (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:104:1)
at Object.defContext.require (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:190:401)
at requirejs (https://www.store.com.br/static/_cache/merged/df181248993a53edc44adc34eb624726.min.js:123:16)
at __puppeteer_evaluation_script__:3:17
at new Promise (<anonymous>)
at __puppeteer_evaluation_script__:2:13
at ExecutionContext._evaluateInternal (/usr/local/lib/node_modules/magepack/node_modules/puppeteer/lib/ExecutionContext.js:122:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (/usr/local/lib/node_modules/magepack/node_modules/puppeteer/lib/ExecutionContext.js:48:12)
at async module.exports (/usr/local/lib/node_modules/magepack/lib/generate/collectModules.js:17:5)
at async Object.category (/usr/local/lib/node_modules/magepack/lib/generate/collector/category.js:43:33)
at async module.exports (/usr/local/lib/node_modules/magepack/lib/generate.js:28:13)
-- ASYNC --
at ExecutionContext.<anonymous> (/usr/local/lib/node_modules/magepack/node_modules/puppeteer/lib/helper.js:111:15)
at DOMWorld.evaluate (/usr/local/lib/node_modules/magepack/node_modules/puppeteer/lib/DOMWorld.js:112:20)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
-- ASYNC --
at Frame.<anonymous> (/usr/local/lib/node_modules/magepack/node_modules/puppeteer/lib/helper.js:111:15)
at Page.evaluate (/usr/local/lib/node_modules/magepack/node_modules/puppeteer/lib/Page.js:860:43)
at Page.<anonymous> (/usr/local/lib/node_modules/magepack/node_modules/puppeteer/lib/helper.js:112:23)
at module.exports (/usr/local/lib/node_modules/magepack/lib/generate/collectModules.js:17:16)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.category (/usr/local/lib/node_modules/magepack/lib/generate/collector/category.js:43:33)
at async module.exports (/usr/local/lib/node_modules/magepack/lib/generate.js:28:13)
@ArthurMenegoli can you share some more information about the store? I tried visiting https://www.store.com.br/, but this doesn't look like a Magento instance to me. It's curious that you have one working and one broken website. Can you work out what's different between these that causes a problem?
Hi @in-session Having same problem here, did you find a solution?
@Jupagar77 No, as we are concentrating on Hyva, I have not pursued this any further.
Are there any problems with the current RequireJS / mixing version? https://github.com/magento/magento2/blob/2.4-develop/lib/web/requirejs/require.js
Magento ver. 2.4.3-p1 Magepack vers. magepack@2.7.2 NodeJS v12.22.7