Comments (2)
A follow-up on this issue.
Using Response
instead of NextResponse
in the handler function does not cause this error. Also, using NextResponse
within a custom route file, like the one in the alpha demo, does not cause this error either.
As a side note, destructuring the http-status
was causing a syntax error when generating types only, but I checked the source and the aliases are exported. Not sure if it could be related.
// SyntaxError: The requested module 'http-status' does not provide an export named 'OK'
import { OK } from 'http-status';
// But this is fine
import HttpStatus from 'http-status';
Response.json(someResponse, { status: HttpStatus.OK });
from payload.
Fixed in beta.6
from payload.
Related Issues (20)
- `generate:types` Fails with Endpoint in Collection Configuration HOT 1
- Text fields that contain international characters are sorted to the end
- When using role based user fields, /create-first-user form always returns "passwords do not match" HOT 2
- TypeError: Cannot assign to read only property 'visibleEntities' of object '#<Object>' HOT 2
- Non-default admin.avatar renders nothing HOT 2
- buildInitialState doesn't handle Array Field Data correctly
- WebP Upload Issue with undefined height HOT 9
- Jsonschema requires uri and filematch despite schema being directly defined
- Locale switch sometimes shows wrong locale HOT 1
- Preview button's fetch call is missing credentials: include
- List view > Filters > "is in" operator > operand value doesn't support multiple selections in Relationship fields
- HMR looping if importing from generated types HOT 1
- Multiple Local API queries in hooks will never resolve (Postgres) HOT 5
- Reset Password link redirects to sign-in page HOT 1
- Toast stuck on submitting when resetting password
- Npm projects receiving `Cannot find module 'drizzle-orm/pg-core'`
- type SelectFieldProps onChange props is typed incorrectly HOT 1
- Resizing silently fails if `sharp` is not defined in config HOT 1
- Doesn't change time from 12-hour format to 24-hour based on locale. HOT 1
- CollapsibleProvider's withinCollapsible is never true. Missing withinCollapsible related CSS classes. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.