symfony webpack-encore not compile in win7x64 - symfony

"C:\Program Files (x86)\Yarn\bin\yarn.cmd" add sass-loader node-sass --dev
yarn add v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
error fsevents#1.1.3: The platform "win32" is incompatible with this module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
error Found incompatible module
Process finished with exit code 1 at 15:24:10.
Execution time: 22 799 ms.
.....
What a cause of this error?

the problem is in node_modules directory and this is the solution : https://github.com/yarnpkg/yarn/issues/626

Thanks for helps!
This problem solved, I install 'webpack' first in my project.

Related

Git repo to Vercel delployment failing

Please help. Git repo to Vercel build failed.
I did this a few weeks ago, and now it's suddenly failing.
This is the error I'm getting:
[16:51:16.832] Cloning github.com/benjanknoetze/benjan-spot (Branch: master, Commit: 1a2ddf0)
[16:51:20.725] Cloning completed: 3.893s
[16:51:21.708] Looking up build cache...
[16:51:21.989] Build Cache not found
[16:51:22.220] Running "vercel build"
[16:51:22.720] Vercel CLI 28.2.0
[16:51:22.981] Your application is being built using `next build`. If you need to define a different build step, please create a `vercel-build` script in your `package.json` (e.g. `{ "scripts": { "vercel-build": "npm run prepare && next build" } }`).
[16:51:22.983] Installing dependencies...
[16:51:23.313] yarn install v1.22.17
[16:51:23.323] warning package.json: No license field
[16:51:23.329] info No lockfile found.
[16:51:23.332] warning No license field
[16:51:23.333] [1/4] Resolving packages...
[16:51:23.334] [2/4] Fetching packages...
[16:51:23.335] [3/4] Linking dependencies...
[16:51:23.339] [4/4] Building fresh packages...
[16:51:23.342] success Saved lockfile.
[16:51:23.344] Done in 0.04s.
[16:51:23.355] Warning: Could not identify Next.js version, ensure it is defined as a project dependency.
[16:51:23.355] Error! No Next.js version could be detected in your project. Make sure `"next"` is installed in "dependencies" or "devDependencies"
My packgage.json:
Error message 1

How to fix the error: "No Next.js version could be detected in your project." when deploying to Vercel with Turborepo and pnpm

I am trying to deploy the Turborepo example app to Vercel using instructions from here, and getting the error:
Error: No Next.js version could be detected in your project. Make sure `"next"` is installed in "dependencies" or "devDependencies"
How can I fix it?
Docs says that the build command npm install --prefix=../.. is only required if using npm workspaces, and doesn't apply when using pnpm or yarn workspaces. Since am using pnpm, I replace npm install --prefix=../.. with pnpm i -r and it worked.

Both npm and yarn have created lockfiles

I'm trying a first deploy for a dokku application.
I'm getting
Both npm and yarn have created lockfiles for this application,
but only one can be used to install dependencies. Installing
dependencies using the wrong package manager can result in missing
packages or subtle bugs in production.
- To use npm to install your application's dependencies please delete
the yarn.lock file.
$ git rm yarn.lock
- To use yarn to install your application's dependences please delete
the package-lock.json file.
$ git rm package-lock.json
I had initially created by project with yarn, but there was also a package-lock.json file. Perhaps I used npm one time. I don't remember.
I followed the instructions and git rm package-lock.json and tried again.
Same error
I then tried removing node_modules and reinstalling with yarn
Same error
So, I did git rm yarn.lock, removed node_modules and installed with npm install.
Same error
I then tried to
repo:purge-cache <app>
repo:gc <app>
and tried again. You guessed it
Same error
Any suggestions? I'm under pressure to deploy something and I'm stuck here.
Did you actually commit the changes removing the files? This is an error caused by the contents of your repository, not by Dokku.

ERROR in ./node_modules/css-loader? - in my styles.css #import "~bootstrap/dist/css/bootstrap.css"

I am using - following configuration on windows 8 64 bit.
Angular CLI: 1.6.4 Node: 8.9.4 OS: win32 x64 Angular: 5.2.2
typescript: 2.5.3 webpack: 3.10.0
Following error occurs when trying to (compile webpack)run angular
on cli:-
ERROR in
./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_mod
ules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./src/styles.css
Module build failed: Error: Can't resolve
'~bootstrap/dist/css/bootstrap.css' in 'F:\code\hello-world\src' at
onError
(F:\code\hello-world\node_modules\enhanced-resolve\lib\Resolver.j
s:61:15)
# ./src/styles.css 4:14-138 # multi ./src/styles.css
webpack: Failed to compile.
There are some things you can try,
Run npm install command again.
Try delete the entire npm_modules folder and run npm install.
Try reinstalling bootstrap.
Make sure you are installing the latest bootstrap.
Try updating the Angular CLI as some version of it has some issues, or uninstall and install it.
If none of the above worked, you can do npm rebuild node-sass command.
I hope any of the above steps will work for you.

jit-grunt: Plugin for the “clean” task not found

After running grunt clean in magento 2.1.3 root folder I get error
If you have installed the plugin already, please setting the static mapping.
See https://github.com/shootaroo/jit-grunt#static-mappings
Warning: Task "clean" failed. Use --force to continue.
Aborted due to warnings.
I tried npm install clean & npm install clean --save-dev but get the same error.
I looked at the url for static mapping, but it is not clear in the Magento environment what I should add where?
How do I solve this error?
Try this:
npm install grunt-clean --save-dev
or
npm install grunt-contrib-clean --save-dev
Please refer to Gruntfile.js

Resources