expo start web cannot read declared vars

Hey there, hope you are fine :slight_smile: i have a problem to run expo start --web in my existing project with a couple of declartations.

I have a var const ColoresMp = { btnAzul: '#1FA9E7', btnGray: '#B0B0B0', btnBlack: 'black', blanco: 'white', middleBlack: '#484848', middleGray: '#aaa', txtGray: '#777', txtLightGray: '#080808ab', celeste: '#1fa9e7', verde: '#01c167' };

And an style component using it

const styles = StyleSheet.create({
    
    tileElegida: { borderWidth: 3, borderColor: ColoresMp.verde },
});

But the web pack throw me an error
TypeError: Cannot read property 'verde' of undefined


modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));

Anyone have this problem ?? also with a couple of libraries…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.