codeanitdotcom / codeanitdotcom.github.io

codeanit.com by @codeanit
https://codeanit.com
MIT License
0 stars 1 forks source link

Analysis: Babel error on build #28

Open anitsh opened 3 years ago

anitsh commented 3 years ago

Print from Netlify build process

7:12:52 PM: Build ready to start
7:12:54 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d
7:12:54 PM: build-image tag: v3.3.20
7:12:54 PM: buildbot version: 78b5536ab4f742c26705d3e953381b9cde6e22ef
7:12:54 PM: Fetching cached dependencies
7:12:54 PM: Starting to download cache of 408.6MB
7:13:04 PM: Finished downloading cache in 10.31842993s
7:13:04 PM: Starting to extract cache
7:13:23 PM: Finished extracting cache in 18.520482992s
7:13:23 PM: Finished fetching cache in 28.954262854s
7:13:23 PM: Starting to prepare the repo for build
7:13:23 PM: Preparing Git Reference refs/heads/master
7:13:25 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus 'public/' in the Netlify UI
7:13:25 PM: Starting build script
7:13:25 PM: Installing dependencies
7:13:25 PM: Python version set to 2.7
7:13:26 PM: Started restoring cached node version
7:13:29 PM: Finished restoring cached node version
7:13:30 PM: v10.21.0 is already installed.
7:13:31 PM: Now using node v10.21.0 (npm v6.14.4)
7:13:31 PM: Started restoring cached build plugins
7:13:31 PM: Finished restoring cached build plugins
7:13:31 PM: Attempting ruby version 2.6.2, read from environment
7:13:33 PM: Using ruby version 2.6.2
7:13:33 PM: Using PHP version 5.6
7:13:33 PM: 5.2 is already installed.
7:13:33 PM: Using Swift version 5.2
7:13:33 PM: Started restoring cached node modules
7:13:33 PM: Finished restoring cached node modules
7:13:33 PM: Started restoring cached yarn cache
7:13:33 PM: Finished restoring cached yarn cache
7:13:34 PM: Installing NPM modules using Yarn version 1.17.0
7:13:35 PM: yarn install v1.17.0
7:13:35 PM: [1/5] Resolving packages...
7:13:36 PM: success Already up-to-date.
7:13:36 PM: Done in 1.34s.
7:13:36 PM: NPM modules installed using Yarn
7:13:37 PM: Started restoring cached go cache
7:13:38 PM: Finished restoring cached go cache
7:13:38 PM: Installing Go version 1.12
7:13:38 PM: unset GOOS;
7:13:38 PM: unset GOARCH;
7:13:38 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64';
7:13:38 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}";
7:13:38 PM: go version >&2;
7:13:38 PM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env';
7:13:38 PM: go version go1.12 linux/amd64
7:13:38 PM: Installing missing commands
7:13:38 PM: Verify run directory
7:13:40 PM: ​
7:13:40 PM: ┌─────────────────────────────┐
7:13:40 PM: │        Netlify Build        │
7:13:40 PM: └─────────────────────────────┘
7:13:40 PM: ​
7:13:40 PM: ❯ Version
7:13:40 PM:   @netlify/build 2.0.27
7:13:40 PM: ​
7:13:40 PM: ❯ Flags
7:13:40 PM:   deployId: 5f0f0458b6c17900089b10ac
7:13:40 PM:   mode: buildbot
7:13:40 PM: ​
7:13:40 PM: ❯ Current directory
7:13:40 PM:   /opt/build/repo
7:13:40 PM: ​
7:13:40 PM: ❯ Config file
7:13:40 PM:   No config file was defined: using default values.
7:13:40 PM: ​
7:13:40 PM: ❯ Context
7:13:40 PM:   production
7:13:40 PM: ​
7:13:40 PM: ┌───────────────────────────────────┐
7:13:40 PM: │ 1. Build command from Netlify app │
7:13:40 PM: └───────────────────────────────────┘
7:13:40 PM: ​
7:13:40 PM: $ gatsby clean && gatsby build
7:13:42 PM: info Deleting .cache, public
7:13:42 PM: info Successfully deleted directories
7:13:45 PM: success open and validate gatsby-configs - 0.099s
7:13:47 PM: success load plugins - 1.874s
7:13:47 PM: success onPreInit - 0.011s
7:13:47 PM: success delete html and css files from previous builds - 0.014s
7:13:47 PM: success initialize cache - 0.008s
7:13:47 PM: success copy gatsby files - 0.031s
7:13:47 PM: success onPreBootstrap - 0.011s
7:13:47 PM: success createSchemaCustomization - 0.009s
7:13:52 PM: success source and transform nodes - 4.213s
7:13:52 PM: success building schema - 0.530s
7:14:03 PM: success createPages - 11.414s
7:14:04 PM: success createPagesStatefully - 0.325s
7:14:04 PM: success onPreExtractQueries - 0.001s
7:14:04 PM: success update schema - 0.306s
7:14:05 PM: success extract queries from components - 1.399s
7:14:06 PM: success write out requires - 0.048s
7:14:06 PM: success write out redirect data - 0.037s
7:14:06 PM: success Build manifest and related icons - 0.651s
7:14:06 PM: success onPostBootstrap - 0.862s
7:14:06 PM: ⠀
7:14:06 PM: info bootstrap finished - 24.541 s
7:14:06 PM: ⠀
7:15:06 PM: success Building production JavaScript and CSS bundles - 59.547s
7:15:06 PM: success Rewriting compilation hashes - 0.001s
7:15:07 PM: success run queries - 60.812s - 13/13 0.21/s
7:15:17 PM: success Building static HTML for pages - 9.041s - 11/11 1.22/s
7:15:17 PM: Generated public/sw.js, which will precache 8 files, totaling 347735 bytes.
7:15:17 PM: success Generating image thumbnails - 87.022s - 40/40 0.46/s
7:15:22 PM: error [BABEL] Note: The code generator has deoptimised the styling of /opt/build/repo/node_modules/react-dom/cjs/react-dom.development.js as it exceeds the max of 500KB.
7:15:30 PM: success onPostBuild - 13.780s
7:15:30 PM: info Done building in 108.549 sec
7:15:31 PM: ​
7:15:31 PM: (build.command completed in 1m 51.2s)
7:15:31 PM: ​
7:15:31 PM: ┌─────────────────────────────┐
7:15:31 PM: │   Netlify Build Complete    │
7:15:31 PM: └─────────────────────────────┘
7:15:31 PM: ​
7:15:31 PM: (Netlify Build completed in 1m 51.2s)
7:15:31 PM: Caching artifacts
7:15:31 PM: Started saving node modules
7:15:31 PM: Finished saving node modules
7:15:31 PM: Started saving build plugins
7:15:31 PM: Finished saving build plugins
7:15:31 PM: Started saving yarn cache
7:15:31 PM: Finished saving yarn cache
7:15:31 PM: Started saving pip cache
7:15:31 PM: Finished saving pip cache
7:15:31 PM: Started saving emacs cask dependencies
7:15:31 PM: Finished saving emacs cask dependencies
7:15:31 PM: Started saving maven dependencies
7:15:31 PM: Finished saving maven dependencies
7:15:31 PM: Started saving boot dependencies
7:15:31 PM: Finished saving boot dependencies
7:15:31 PM: Started saving go dependencies
7:15:33 PM: Finished saving go dependencies
7:15:33 PM: Build script success
7:15:33 PM: Starting to deploy site from 'public'
7:15:33 PM: Creating deploy tree 
7:15:33 PM: Creating deploy upload records
7:15:33 PM: 0 new files to upload
7:15:33 PM: 0 new functions to upload
7:15:33 PM: Starting post processing
7:15:34 PM: Post processing - HTML
7:15:34 PM: Post processing - redirect rules
7:15:34 PM: Post processing - header rules
7:15:34 PM: Post processing done
7:15:34 PM: Site is live
anitsh commented 3 years ago

This issue comes up when building on local as well.

ERROR 

[BABEL] Note: The code generator has deoptimised the styling of /home/anit/Work/codeanit.com/node_modules/react-dom/cjs/react-dom.development.js as it exceeds the max of 500KB.
anitsh commented 3 years ago

More findings: https://stackoverflow.com/questions/29576341/what-does-the-code-generator-has-deoptimised-the-styling-of-some-file-as-it-e https://github.com/ChristopherBiscardi/gatsby-mdx/issues/411 https://discuss.elastic.co/t/babel-note-the-code-generator-has-deoptimised-the-styling-of-500kb/226848/5