api-routes-micro example fails with error
See original GitHub issueBug 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:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top 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 >
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 Free
Top 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

Maybe you didn’t install micro@canary
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.