{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/8725","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/8725/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/8725/comments","events_url":"https://api.github.com/repos/babel/babel/issues/8725/events","html_url":"https://github.com/babel/babel/issues/8725","id":361373314,"node_id":"MDU6SXNzdWUzNjEzNzMzMTQ=","number":8725,"title":"a lot of warnings when importing the side npm components","user":{"login":"majioa","id":417632,"node_id":"MDQ6VXNlcjQxNzYzMg==","avatar_url":"https://avatars3.githubusercontent.com/u/417632?v=4","gravatar_id":"","url":"https://api.github.com/users/majioa","html_url":"https://github.com/majioa","followers_url":"https://api.github.com/users/majioa/followers","following_url":"https://api.github.com/users/majioa/following{/other_user}","gists_url":"https://api.github.com/users/majioa/gists{/gist_id}","starred_url":"https://api.github.com/users/majioa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majioa/subscriptions","organizations_url":"https://api.github.com/users/majioa/orgs","repos_url":"https://api.github.com/users/majioa/repos","events_url":"https://api.github.com/users/majioa/events{/privacy}","received_events_url":"https://api.github.com/users/majioa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-18T15:55:09Z","updated_at":"2018-09-18T15:55:12Z","closed_at":null,"author_association":"NONE","body":"## Bug Report\r\n\r\n**Current Behavior**\r\n\r\nI have got many warning message of typeof3 default export absence like follows:\r\n```\r\nAdd any other context about the problem here. If applicable, add screenshots to help explain.\r\nWARNING in ./node_modules/@babel/runtime/helpers/typeof.js 10:120-128\r\n\"export 'default' (imported as '_typeof3') was not found in '@babel/runtime/helpers/typeof'\r\n    at HarmonyImportSpecifierDependency._getErrors (/usr/local/home/majioa/git/prometheus2.0/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:113:11)\r\n    at HarmonyImportSpecifierDependency.getWarnings (/usr/local/home/majioa/git/prometheus2.0/node_modules/webpack/lib/dependencies/HarmonyImportSpecifierDependency.js:60:15)\r\n    at Compilation.reportDependencyErrorsAndWarnings (/usr/local/home/majioa/git/prometheus2.0/node_modules/webpack/lib/Compilation.js:1326:24)\r\n    at Compilation.finish (/usr/local/home/majioa/git/prometheus2.0/node_modules/webpack/lib/Compilation.js:1137:9)\r\n    at hooks.make.callAsync.err (/usr/local/home/majioa/git/prometheus2.0/node_modules/webpack/lib/Compiler.js:545:17)\r\n    at _err0 (eval at create (/usr/local/home/majioa/git/prometheus2.0/node_modules/tapable/lib/HookCodeFactory.js:32:10), <anonymous>:11:1)\r\n    at _addModuleChain (/usr/local/home/majioa/git/prometheus2.0/node_modules/webpack/lib/Compilation.js:1065:12)\r\n    at processModuleDependencies.err (/usr/local/home/majioa/git/prometheus2.0/node_modules/webpack/lib/Compilation.js:981:9)\r\n    at _combinedTickCallback (internal/process/next_tick.js:132:7)\r\n    at process._tickCallback (internal/process/next_tick.js:181:9)\r\n @ ./node_modules/materialize-css/dist/js/materialize.js\r\n @ ./app/packs/components/Dashboard.jsx\r\n @ ./app/packs/tiunnja.js\r\n```\r\nwhile trying to import many external components. ths import code is below:\r\n\r\nQ: how to avoid the warning mesages?\r\n\r\n**Input Code**\r\n\r\nInput code sample for the warnings\r\n\r\n```js\r\nimport M from 'materialize-css'\r\nimport * as assign from 'assign-deep'\r\n...\r\n```\r\nor any other import, except may be react do this warning\r\n\r\n**Expected behavior/code**\r\nA clear and concise description of what you expected to happen (or code).\r\n\r\n**Babel Configuration (.babelrc, package.json, cli command)**\r\n\r\n**package.json**\r\n\r\n```js\r\n{\r\n  \"devDependencies\": {\r\n    \"@babel/core\": \"^7.1.0\",\r\n    \"@babel/plugin-proposal-class-properties\": \"^7.1.0\",\r\n    \"@babel/plugin-proposal-decorators\": \"^7.1.0\",\r\n    \"@babel/plugin-proposal-export-default-from\": \"^7.0.0\",\r\n    \"@babel/plugin-proposal-export-namespace-from\": \"^7.0.0\",\r\n    \"@babel/plugin-transform-runtime\": \"^7.1.0\",\r\n    \"@babel/plugin-transform-template-literals\": \"^7.0.0\",\r\n    \"@babel/preset-env\": \"^7.1.0\",\r\n    \"@babel/preset-react\": \"^7.0.0\",\r\n    \"@babel/runtime\": \"^7.0.0\",\r\n    \"babel\": \"^6.23.0\",\r\n    \"babel-loader\": \"^8.0.2\",\r\n    \"css-loader\": \"^1.0.0\",\r\n    \"mini-css-extract-plugin\": \"^0.4.2\",\r\n    \"node-sass\": \"^4.9.3\",\r\n    \"optimize-css-assets-webpack-plugin\": \"^5.0.1\",\r\n    \"postcss-loader\": \"^3.0.0\",\r\n    \"sass-loader\": \"^7.1.0\",\r\n    \"uglifyjs-webpack-plugin\": \"^2.0.1\",\r\n    \"webpack\": \"^4.19.1\",\r\n    \"webpack-cli\": \"^3.1.0\",\r\n    \"yarn\": \"^1.9.4\"\r\n  },\r\n  \"dependencies\": {\r\n    \"assign-deep\": \"^1.0.0\",\r\n    \"axios\": \"^0.18.0\",\r\n    \"lodash-decorators\": \"^6.0.0\",\r\n    \"materialize-css\": \"git+https://git@github.com/Dogfalo/materialize.git#v1-dev\",\r\n    \"prop-types\": \"^15.6.2\",\r\n    \"react\": \"^16.5.1\",\r\n    \"react-rails-ujs\": \"^1.1.0\",\r\n    \"react-scroll-pagination\": \"git+https://git@github.com/majioa/react-scroll-pagination.git#devel\"\r\n  },\r\n}\r\n```\r\n\r\n**config.webpack.js**\r\n```js\r\n{\r\nvar path = require('path')\r\nvar join = path.join\r\n\r\nglobal.env = process.env.RAILS_ENV || process.env.NODE_ENV || 'development'\r\n\r\nvar isProd = global.env === 'production' || global.env === 'staging'\r\nvar isDev = global.env === 'development'\r\n\r\nglobal.rootpath = path.normalize(join(__dirname, '../'))\r\n\r\nconsole.log(\"Rails root:\", global.rootpath)\r\nconsole.log(\"Env:\", global.env)\r\n\r\nconst UglifyJsPlugin = require(\"uglifyjs-webpack-plugin\")\r\nconst MiniCssExtractPlugin = require(\"mini-css-extract-plugin\")\r\nconst OptimizeCSSAssetsPlugin = require(\"optimize-css-assets-webpack-plugin\")\r\n\r\nmodule.exports = {\r\n   cache: true,\r\n\r\n   context: global.rootpath,\r\n\r\n   entry: {\r\n      'tiunnja': './app/packs/tiunnja.js',\r\n   },\r\n\r\n   module: {\r\n      rules: [\r\n         {\r\n            test: /\\.(sa|sc|c)ss$/,\r\n            use: [\r\n               {\r\n                  loader: MiniCssExtractPlugin.loader,\r\n                  options: {\r\n                     publicPath: '../'\r\n                  }\r\n               },\r\n               {\r\n                  loader: \"css-loader\",\r\n                  options: {\r\n                     sourceMap: true\r\n                  }\r\n               }, {\r\n                  loader: \"postcss-loader\",\r\n                  options: {\r\n                     ident: 'postcss',\r\n                     sourceMap: true,\r\n                     options: {},\r\n                 }\r\n               }, {\r\n                  loader: \"sass-loader\",\r\n                  options: {\r\n                     sourceMap: true\r\n                  }\r\n               }\r\n            ]\r\n         },\r\n         {\r\n            test: /\\.(js|jsx)$/,\r\n            use: [{\r\n               loader: 'babel-loader',\r\n               options: {\r\n                  cacheDirectory: true,\r\n                  ignore: [/cjs/],\r\n                  presets: [\r\n                     '@babel/preset-env',\r\n                     '@babel/preset-react',\r\n                  ],\r\n                  plugins: [\r\n                     '@babel/plugin-transform-runtime',\r\n                     '@babel/plugin-proposal-object-rest-spread', // [v,] => [v]\r\n                     '@babel/plugin-proposal-export-default-from',\r\n                     '@babel/plugin-proposal-export-namespace-from',\r\n                     '@babel/plugin-proposal-class-properties',\r\n                     '@babel/plugin-transform-template-literals', // `foo${bar}` => \"foo\".concat(bar)\r\n                     ['@babel/plugin-proposal-decorators', {\r\n                        \"decoratorsBeforeExport\": true\r\n                     }]\r\n                  ],\r\n               },\r\n            }]\r\n         },\r\n      ],\r\n   },\r\n\r\n   output: {\r\n      path: join(global.rootpath, 'vendor/assets/javascripts'),\r\n      filename: isProd ? '[name].[hash].js' : '[name].js',\r\n      devtoolModuleFilenameTemplate: 'webpack:///[absolute-resource-path]'\r\n   },\r\n\r\n   optimization: {\r\n      splitChunks: {\r\n         cacheGroups: {\r\n           styles: {\r\n               name: 'styles',\r\n               test: /\\.css$/,\r\n               chunks: 'all',\r\n               enforce: true\r\n            }\r\n         }\r\n      },\r\n      minimizer: [\r\n         new OptimizeCSSAssetsPlugin({})\r\n      ]\r\n   },\r\n\r\n   plugins: [\r\n      new MiniCssExtractPlugin({\r\n         filename: isProd ? '../stylesheets/[name].[hash].css' : '../stylesheets/[name].css',\r\n         chunkFilename: \"[id].css\"\r\n      })\r\n   ],\r\n\r\n   resolve: {\r\n      extensions: [ '.js', '.jsx' ],\r\n      modules: ['packs', 'node_modules', 'components', 'css'],\r\n   },\r\n}\r\n\r\n}\r\n```\r\n\r\n**Environment**\r\n- Babel version(s): [v7.0.0]\r\n- Node/npm version: [e.g. Node 8/npm 6]\r\n- OS: [alt linux]\r\n- Monorepo [no]\r\n- How you are using Babel: [ `loader`]\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/422449512","html_url":"https://github.com/babel/babel/issues/8725#issuecomment-422449512","issue_url":"https://api.github.com/repos/babel/babel/issues/8725","id":422449512,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjQ0OTUxMg==","user":{"login":"babel-bot","id":21250019,"node_id":"MDQ6VXNlcjIxMjUwMDE5","avatar_url":"https://avatars1.githubusercontent.com/u/21250019?v=4","gravatar_id":"","url":"https://api.github.com/users/babel-bot","html_url":"https://github.com/babel-bot","followers_url":"https://api.github.com/users/babel-bot/followers","following_url":"https://api.github.com/users/babel-bot/following{/other_user}","gists_url":"https://api.github.com/users/babel-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/babel-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babel-bot/subscriptions","organizations_url":"https://api.github.com/users/babel-bot/orgs","repos_url":"https://api.github.com/users/babel-bot/repos","events_url":"https://api.github.com/users/babel-bot/events{/privacy}","received_events_url":"https://api.github.com/users/babel-bot/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T15:55:12Z","updated_at":"2018-09-18T15:55:12Z","author_association":"COLLABORATOR","body":"Hey @majioa! We really appreciate you taking the time to report an issue. The collaborators\non this project attempt to help as many people as possible, but we're a limited number of volunteers,\nso it's possible this won't be addressed swiftly.\n\nIf you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack\ncommunity that typically always has someone willing to help. You can sign-up [here](https://slack.babeljs.io/)\nfor an invite."}}
{"actor":{"display_login":"babel-bot"}}