An unexpected error occurred: "Potentially dangerous call to \"next-sitemap\"
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
dont use yarn … use NPM its just works fine
This is regarding windows file system. It’s already addressed at: https://github.com/iamvishnusankar/next-sitemap#building-sitemaps
Closing this for now!