On checkout page , this error comes up "default.js:70 Uncaught TypeError: Cannot read property 'method_code' of null" how to fix it? or get the value of 'method_code'?
Are you developing a custom shipping extension or just added a new one to Magento? This error is happening because the extension is not returning the correct data to the frontend.
You can fix that by disabling the faulty shipping extension. If you are developing a new one, try to debug it or share the code so we can help you.