question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An unexpected error occurred: "Potentially dangerous call to \"next-sitemap\"

See original GitHub issue

Describe the bug When i run: yarn build, the comand throws an error:

yarn run v1.22.17
$ next-sitemap
error An unexpected error occurred: "Potentially dangerous call to \"next-sitemap\" in C:\\Users\\jonat\\Downloads\\app-modern-next\\004-app-modern-next

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ProgrammingInBloodcommented, Dec 23, 2021

dont use yarn … use NPM its just works fine

0reactions
iamvishnusankarcommented, Jan 7, 2022

This is regarding windows file system. It’s already addressed at: https://github.com/iamvishnusankar/next-sitemap#building-sitemaps

Closing this for now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot create sitemaps on nextjs with next-sitemap
Okay, so I found the problem. I needed to import the correct module, next-sitemap has two APIs.
Read more >
Issues · iamvishnusankar/next-sitemap - GitHub
Generate sitemap(s) and robots.txt for all static/pre-rendered/dynamic/server-side pages. - Issues · iamvishnusankar/next-sitemap.
Read more >
next-sitemap - npm
Sitemap generator for next.js. Latest version: 3.1.43, last published: 7 days ago. Start using next-sitemap in your project by running `npm ...
Read more >
Generate a Sitemap With Next.js and TypeScript | Maikel Veen
In this article you will learn how to create a sitemap for any Nextjs project.
Read more >
Common Sitemaps Errors and How to Fix Them - DYNO Mapper
This article explains some of the most common errors and how to solve them for successful submission of sitemaps to Google webmaster tools....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found