-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Description
{
...
"devDependencies": {
"@babel/preset-env": "^7.16.11",
"@babel/register": "^7.17.7",
"babel-loader": "^8.2.3",
"gulp": "^4.0.2",
"gulp-autoprefixer": "^8.0.0",
"gulp-concat": "^2.6.1",
"gulp-cssmin": "^0.2.0",
"gulp-rename": "^2.0.0",
"gulp-sourcemaps": "^3.0.0",
"gulp-typescript": "^6.0.0-alpha.1",
"prettier": "^2.5.1",
"ts-loader": "^9.2.8",
"tslint": "^6.1.3",
"typescript": "^4.6.2",
"webpack-stream": "^7.0.0"
}
}
import {src, dest,} from 'gulp';
import webpack from 'webpack-stream';
import rename from 'gulp-rename';
function scripts() {
return src("javascript/main.js")
.pipe(
webpack({
output: {
filename: "bundle.js",
},
devtool: "inline-source-map",
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components|vendor)/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
},
},
},
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: /node_modules/,
},
],
},
resolve: {
extensions: [".ts", ".js"],
},
mode: "development",
})
)
.on("error", (err) => console.error(err))
.pipe(dest("public/scripts"));
}
export {scripts};
Everything worked yesterday, today I get the following error:
Did you forget to signal async completion
What I did:
- These tips didn't help: first, second
- I tried using async before
scriptsfunction and I did it with@babel/polyfill, but it didn't help me. Fallowing example don't work:
async function scripts() {
...
async function scripts() {
await src("javascript/main.js")
...
function scripts(done) {
src("javascript/main.js")
...
done();
etc...
It worked yesterday!!! But don't work today. I special download my first commit (I did this when everything was working well) and
it doesn't work too!!!
One day has passed, and everything has already broken...
File structure:
-javascript (entree)
-public/scripts/ (output)
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels