How to fix 'no entries found' on server run in Parcel.js - parceljs

On trying to run the server with 'parcel index.js':
Server running at http://localhost:1234 🚨 No entries found.
at Bundler.bundle (/usr/local/lib/node_modules/parcel-bundler/src/Bundler.js:275:17)
Server is showing a 404 error. I'm having the same problem with all my projects, so I feel like this is a global issue. Everything was working fine on all projects and suddenly this is occurring.
already tried:
uninstalling parcel-bundler and reinstalling (globally + locally)
Thanks!

Simple mistake, was using "parcel index.js" when I should have been using "parcel index.html"

As above check the directory from which you are working i was inside src and running src/parcel index.html it should be parcel index.html

Mine was typing parcel /src/index.html instead of parcel src/index.html. Spent 20 minutes on this.......

Maybe you are running parcel in a subfile of a project, so you need to add the path relative to the root directory,my path is parcel Navigation-webpage/index.html

My mistake on windows was that I used parcel src/index.html instead of parcel src\index.html

Try
npm i #parcel/transformer-sass
And update parcel bundler .
npm i parcel

Make sure you've got all your filenames in the explorer view spelled correctly. That was my solution to this problem.

I meet the same error.
And please check json file:
"source" : "src/index.html"
It's source instead of main.

I fixed this error by discovering my mistake at first
when I created the project main folder and then created the /src folder by mistake I created the index.html in the main folder, not inside the /src folder
and when I do npm run dev I get this error
Build failed.unknown: Entry Error
So to fix that I moved the files [index.html - main.scss - widget.js] to the src folder, So now it looks like this
enter image description here
And it works
Important hint here because it happened to me too: after you move the
files and try again with "npm run dev" you will get an error and the
reason why is that you need first to change all the directories of the
imported files in the [index.html], like main.css app.js and the
images too before running parcel again.

Related

Weird output from "flutter clean" command when used outside folder that has build

When i run flutter clean a folder outside the main build folder. I this response:
Changing current working directory to: /User/..
Why is that? and what does working directory refer to? How do i know my old one?
There needs to be a yaml file for flutter clean to work correctly.
That was my mistake.

how can i edit heroku app files for discord bots?

I'm stuck at Run error I know how to solve it, I just want to edit app files
like node_modules how I can do such thing?
2021-04-28T15:09:04.098902+00:00 app[worker.1]: /app/node_modules/discord.js/src/client/ClientDataManager.js:81
2021-04-28T15:09:04.098924+00:00 app[worker.1]:guild.channels.set(channel.id, channel);
why do you want to edit a internal file? when you could just simply update to v12.5.3
all the versions below 12.5.3 is broken and is not supported (stage channels broke the versions),
and to your question,
here is what i found while searching ,
"The app’s node_modules directory is generated at build time from the dependencies listed in package.json and the lockfile."
this was from https://devcenter.heroku.com/articles/troubleshooting-node-deploys
So as they are being genarated at the build time, it will not matter of what you change in the node_modules it will not be there when you start your app

Using PurgeCss with Laravelmix and PostCss

I was trying to install PurgeCss on my githubpage project. I am using Laravelmix as a standalone dependency and I only have the index.html file on the root folder to be scanned by purgeCSS. I am attaching two images: one of the folder structure and one for the current webpack.mix.js configuration that I'm running.
I would like to know what's the best way and how to use the PurgeCSS in my config. I've tried several times and everytime I run the command: npm run production it errors out.
These are the screenshots:
https://i.stack.imgur.com/PmP4x.png
https://i.stack.imgur.com/NCkz9.png
Would appreciate some help here. Thanks.
There is a package named laravel-mix-purgecss. The repository is documented and can help you setup purgecss with laravel-mix.
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.purgeCss({ /* My options */ });

how to compile kdesvn from githib repo

I've downloaded the sources for kdesvn from the github repo as I'm thinking to look into working on an addition to the project. Now turns out, I'm not even able to properly compile the downloaded sources: I've created a directory kdesvn-build changed into it and launched cmake ../ (as described on https://github.com/KDE/kdesvn/blob/master/INSTALL-cmake) which does some stuff but then stops saying:
CMake Error: The following variables are used in this project, but
they are set to NOTFOUND. Please set them or make sure they are set
and tested correctly in the CMake files: SUBVERSION_INCLUDE_DIR
Now, I don't know what SUBVERSION_INCLUDE_DIR should be set to nor could I find it searching around the web. Anyone?
It is a directory containing svn_*.h files. If you are on Linux, you'd need to install something like subversion-dev package. On FreeBSD headers are installed with main package, and the directory is /usr/local/include/subversion-1/.

Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'

When I compile static with php bin/magento setup:static-content:deploy, I'm getting the following errors:
Unable to get content for 'frontend/Magento/blank/en_US/css/source/lib/_lib.less'
Unable to get content for 'frontend/Magento/luma/en_US/css/source/lib/_lib.less'
I was also facing the same issue. Then I went through the comments from different people on GitHub here. After that I was able to fix by recovering the folder "lib/web/css" or whole "lib/web" under root directory.
Lastly run the command and there was no error :
bin/magento setup:static-content:deploy en_US -f
Based on your setup version you can take it from here : https://github.com/magento/magento2/tree/2.3/lib
Your Magento probably was poorly updated, you might be able to fix it by getting a new composer installation in the same version and replacing your lib folder with a clean lib folder from the native installation.