# App Container Deprecated #### Why This Error Occurred In versions prior to v9.0.4 the `` component was used in `./pages/_app.js` to handle scrolling to hashes. This handling has been moved up the tree so the `` component is no longer needed in your custom ``! #### Possible Ways to Fix It Remove the `` component from your Custom `` (`./pages/_app.js`). **Before** ```jsx import React from 'react' import App, { Container } from 'next/app' class MyApp extends App { render() { const { Component, pageProps } = this.props return ( ) } } export default MyApp ``` **After** ```jsx import React from 'react' import App from 'next/app' class MyApp extends App { render() { const { Component, pageProps } = this.props return } } export default MyApp ```