Skip to content

Conversation

@enieber
Copy link

@enieber enieber commented Jun 13, 2024

Alterar configuração para o rede mapas funcionar com git submodule

@lpirola
Copy link
Member

lpirola commented Jun 13, 2024

@enieber consegue deixar apenas o seu commit no PR?

@enieber
Copy link
Author

enieber commented Jun 13, 2024

Não, pois tem correção do metabase e tem a alteração para funcionar com a nova arquitetura

@enieber
Copy link
Author

enieber commented Jun 13, 2024

sem essas atualizações pode ter erros na hora do build

@enieber enieber changed the title Atualização do metabase WIP: Atualização do metabase Jun 13, 2024
@enieber
Copy link
Author

enieber commented Jun 13, 2024

A ideia é que podemos atualizar o plugin para usarmos como submodule e usar essas alterações para atualizar o plugin dentro de redemapas.

@enieber
Copy link
Author

enieber commented Jun 14, 2024

Um dos problemas que acontece:

image

hemes/BaseV2 build$ mix --mix-config=node_modules/@mapas/scripts/webpack.mix.js --production                           
plugins/Metabase build: Invalid configuration object. Webpack has been initialised using a configuration object that doe
s not match the API schema.                                                                                             
plugins/Metabase build:  - configuration.optimization.splitChunks.cacheGroups['styles-assets/css/plugin-metabase'] has a
n unknown property 'type'. These properties are valid:                                                                  
plugins/Metabase build:    object { automaticNameDelimiter?, automaticNameMaxLength?, automaticNamePrefix?, chunks?,enf
orce?, enforceSizeThreshold?, filename?, maxAsyncRequests?, maxInitialRequests?, maxSize?, minChunks?, minSize?, name?, 
priority?, reuseExistingChunk?, test? }                                                                                 
plugins/Metabase build:  - configuration.output.chunkFilename should be a string.                                       
plugins/Metabase build:    -> The filename of non-entry chunks as relative path inside the `output.path` directory.     
plugins/Metabase build:  - configuration.stats has an unknown property 'preset'. These properties are valid:            
plugins/Metabase build:    object { all?, assets?, assetsSort?, builtAt?, cached?, cachedAssets?, children?, chunkGroups
?, chunkModules?, chunkOrigins?, chunks?, chunksSort?, colors?, context?, depth?, entrypoints?, env?, errorDetails?, err
ors?, exclude?, excludeAssets?, excludeModules?, hash?, logging?, loggingDebug?, loggingTrace?, maxModules?, oduleAsset
s?, moduleTrace?, modules?, modulesSort?, nestedModules?, optimizationBailout?, outputPath?, performance?, providedExports?, publicPath?, reasons?, source?, timings?, usedExports?, version?, warnings?, warningsFilter? }                     
plugins/Metabase build: Failed                                                                                          
/var/www/src/plugins/Metabase:                                                                                          
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  metabase@1.0.0 build: `mix --mix-config=node_modules/@mapas/scripts/webpack.mix.js -
-production`                                                                                                            
Exit status 1                                                                                                           
 ELIFECYCLE  Command failed with exit code 1.                                                                           
root@0ac01ddf7ec0:/var/www/src#                      

@vicmagpac vicmagpac changed the base branch from main to develop June 17, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants