My problem:
I use the wp-scripts node packages to create a gutenberg plugin. My configuration worked well for one or two weeks and soudainely it stop to work.
My package.json files is:
{
"name": "wf-g",
"version": "0.1.0",
"description": "Example static block scaffolded with Create Block tool.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"main": "build/index.js",
"scripts": {
"build": "wp-scripts build",
"format": "wp-scripts format",
"lint:css": "wp-scripts lint-style",
"lint:js": "wp-scripts lint-js",
"packages-update": "wp-scripts packages-update",
"plugin-zip": "wp-scripts plugin-zip",
"start": "wp-scripts start",
"css": "node-sass --source-map true --output-style compressed -w src/scss/style.scss -o css/ ",
"dev": "concurrently --kill-others \"npm run start\" \"npm run css\""
},
"devDependencies": {
"@wordpress/scripts": "^23.0.0",
"concurrently": "^7.1.0"
},
"dependencies": {
"node-sass": "^7.0.1"
}
}
I used to run the script dev
with npm run dev
command. Css script continue to work but the start
script doesn't work anymore.
I work with Visual Studio Code and the terminal display this :
PS D:\Developpement\Sites - Local\Gutenberg-Dev\app\public\wp-content\plugins\webformation-gut> npm run dev
> [email protected] dev
> concurrently --kill-others "npm run start" "npm run css"
[1]
[1] > [email protected] css
[1] > node-sass --source-map true --output-style compressed -w src/scss/style.scss -o css/
[1]
[0]
[0] > [email protected] start
[0] > wp-scripts start
[0]
What I tried:
I try to run start
script directly nothing... build
script nothing.
I try to delete the node_modules
folder and the package-lock.json
... and try again npm install --only=dev
. Nothing append.
Does anyone can help me ?
Thanks