Comments (5)
never mind, I figured it out –_–
I am unclear on how to import these types now, but I see there's another issue for that.
from contentful-typescript-codegen.
@EricWVGG what was your solution, I am having the same issues on Windows
from contentful-typescript-codegen.
This was unfortunately so long ago that I can't really remember, and regardless I think my solution would be outdated in favor of better options.
I was working on a project that used Contentful alongside Gatsby; Gatsby just released a new, integrated GraphQL codegen, so I would just opt to use that today.
from contentful-typescript-codegen.
(note: the Gatsby solution works with any GraphQL data source, not just Contentful, so that nicely steps around any platform-specific issues… it "just works")
from contentful-typescript-codegen.
@EricWVGG what was your solution, I am having the same issues on Windows
In my case the issue was trying to load the env stuff (@next/env) using loadEnvConfig()
with process.env.PWD
as directory instead of process.cwd()
.
from contentful-typescript-codegen.
Related Issues (20)
- The automated release is failing 🚨 HOT 2
- Smooth integration with next.js , env.local and alternative to getContentfulEnvironment HOT 5
- TypeError: Cannot read property 'getContentTypes' of undefined HOT 6
- Imports { Document } when it is not used HOT 2
- Feature Request: Export union of all entries HOT 1
- Fields are incorrectly extending Entry HOT 7
- ERR_REQUIRE_ESM in Node 16.6 HOT 5
- Not using prettierrc.json
- Missing collection types in generated file HOT 3
- Type narrowing not working with current setup HOT 1
- generating typescript models fails for specific space with TypeError: contentTypeValidation.linkContentType.map is not a function
- Syntax error from code generation
- TypeError: functionMap[field.type] is not a function HOT 2
- Update to work with Contentful v10 HOT 8
- Non-required attributes are not automatically generated to have `| null` appended to type
- getContenfulEnvironment.ts HOT 1
- Prettier config not resolved correctly
- contentful^8.1.9 is required HOT 1
- Top level id, contentType and type on Entry HOT 1
- have option to add namespace and own commenting to generated types
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 contentful-typescript-codegen.