Rich_Morin

Rich_Morin

I’m getting the following warning when I run mix phx.server:

Browserslist: caniuse-lite is outdated.
  Please run next command
  `npm update caniuse-lite browserslist`

I tried running the command, and got no errors, but the warning didn’t go away. I also tried mix clean; mix compile, to no avail. Suggestions?

Showing Posts 1 to 5

Nicd

Nicd

Did you run the command in the assets directory, where the npm assets live?

gabokarma

gabokarma

That warning is shown because of the defined version of “caniuse-lite” in assets/package-lock.json file.

I sended a pull-request for update the version. :slight_smile:

romenigld

romenigld

I have this complaining when I run the phoenix server.

iex(1)> Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

so I go to the assets folder and run:
npx browserslist@latest --update-db

then it complains for this:

Need to install the following packages:
  browserslist@latest
Ok to proceed? (y) y

/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:54
  throw new BrowserslistUpdateError(
  ^
Error [BrowserslistUpdateError]: No lockfile found. Run "npm install", "yarn install" or "pnpm install"
    at detectLockfile (/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:54:9)
    at updateDB (/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/update-browserslist-db/index.js:258:14)
    at Object.<anonymous> (/Users/romenigld/.npm/_npx/072487b38308305a/node_modules/browserslist/cli.js:42:3)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Module._load (node:internal/modules/cjs/loader:827:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  browserslist: true
}

Node.js v18.2.0
npm notice
npm notice New minor version of npm available! 8.9.0 -> 8.19.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.19.2
npm notice Run npm install -g npm@8.19.2 to update!
npm notice

I want to know if it’s ok to update the npm with the phoenix v1.6.10?

derek-zhou

derek-zhou

I’d just leave the caniuse-lite warning alone. Doesn’t hurt anything. I am not brave enough to dig in the rabbit hole of npm.

frerich

frerich

Upgrading the Tailwind CLI version helps with this – it’s Tailwind CSS which ships with these node modules, and they tend to get outdated over time.

  1. Adjust the Tailwind config by editing config/config.exs
  2. Run mix tailwind.install to pick up the new configuration, upgrading Tailwind CLI
— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
Onor.io
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Trolleger
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
matt-savvy
Anyone here using Honeybadger? My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of Bandit.HTTPError...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews