Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

215
Visualizações
Renaming '_next' to 'next' in the out directory: NextJS

I'm building NextJS chrome extension, the problem that I'm facing is that when I 'load unpacked' extension it say that "Cannot load extension with file or directory name _next. Filenames starting with _ are reserved for use by the system."

I have checked some solutions online which says that renaming '_next' to 'next' and then changing all '_next' to 'next' in the 'out' directory should work.

the commands for the above tasks are

rm -rf .next/ out/
rm extension.zip 
npm run build
npm run export 
mv ./out/_next ./out/next
cd ./out && grep -rli '_next' * | xargs -I@ sed -i '' 's/_next/next/g' @ 
zip -r -FS ../my-extension.zip *

I have checked the above commands but it changes my styles and routing doesn't work after that.

before changing '_next' to 'next' my extension looks like this in the browser enter image description here

after moving '_next' to 'next' in the 'out' directory,

mv ./out/_next ./out/next

my extension looks like this in the browser.

enter image description here

Note: I know that i have to change all the chunks which include '_next' to 'next' in the 'out' directory, but I don't know how to do that, because when I run

cd ./out && grep -rli '_next' * | xargs -I@ sed -i '' 's/_next/next/g' @

the output it gives me is:

$ cd ./out && grep -rli '_next' * | xargs -I@ sed -i '' 's/_next/next/g' @
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory
sed: can't read s/_next/next/g: No such file or directory

kindly guide me, how can I rename all '_next*' to 'next*' in the this directory.

Thank you for your precious time.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda