You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serverless: Packing external modules: aws-sdk@^2.270.1, uuid@^8.3.2, ramda@^0.27.1, common@file:../common, atob@^2.1.2, es6-promisify@^6.1.1, btoa@^1.2.1, node-forge@^0.10.0, slugify@^1.4.6, node-ses@^3.0.3, request-promise-native@^1.0.7, request
Serverless: WARNING: Could not determine version of module request
Error --------------------------------------------------
Error: ENOENT: no such file or directory, stat '/Users/i/Dev/name-of-project/api/.webpack/dependencies/node_modules/common'
I'm pulling my hair as Serverless ecosystem keeps throwing 'random' errors at me. This is the most recent one blocking me.
constslsw=require("serverless-webpack")constnodeExternals=require("webpack-node-externals")// const CopyPlugin = require("copy-webpack-plugin")module.exports={entry: slsw.lib.entries,target: 'node',// Generate sourcemaps for proper error messagesdevtool: 'source-map',// Since 'aws-sdk' is not compatible with webpack,// we exclude all node dependenciesexternals: [nodeExternals()],mode: slsw.lib.webpack.isLocal ? "development" : "production",optimization: {// We do not want to minimize our code.minimize: false},performance: {// Turn off size warnings for entry pointshints: false},// node: false,// devtool: 'inline-cheap-module-source-map',// Run babel on all .js files and skip those in node_modulesmodule: {rules: [{test: /\.js$/,include: __dirname,exclude: /node_modules/,use: [{loader: 'babel-loader',options: {presets: [['@babel/preset-env',{targets: {node: '12'},useBuiltIns: 'usage',corejs: 3,},],],},},],},],},plugins: [// TODO// new CopyPlugin([// 'path/to/specific/file',// 'recursive/directory/**',// ]),],};
The text was updated successfully, but these errors were encountered:
I'm getting errors when using local npm package:
I'm pulling my hair as Serverless ecosystem keeps throwing 'random' errors at me. This is the most recent one blocking me.
Serverless: 1.83.2
"copy-webpack-plugin": "^6.1.1",
"serverless-webpack": "^5.3.5",
"webpack": "^4.44.2",
"webpack-node-externals": "^2.5.2"
serverless.yml:
webpack.config:
The text was updated successfully, but these errors were encountered: