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.

api-routes-micro example fails with error

See original GitHub issue

Bug report

Describe the bug

following this example fails with error TypeError: resolver is not a function https://github.com/zeit/next.js/blob/master/examples/api-routes-micro/pages/api/posts.js

To Reproduce

copy posts.js into pages/api run next visit pages/api/posts see error in console

Expected behavior

should return 200

System information

  • OS: Windows 10
  • Browser (if applies) [e.g. chrome, safari]
  • Version of Next.js: 9.1.4

Additional context

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
timneutkenscommented, Dec 9, 2019

Maybe you didn’t install micro@canary

0reactions
balazsorban44commented, Jan 29, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

20190709のJavaScriptに関する記事は30件です。
app.js:38008 [Vue warn]: Failed to mount component: template or render function not defined. found in ---> <コンポーネント名> <Root>.
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