Comments (4)
Wasn't able to recreate. Does this fail with just pnpm dev:generate-types plugin-stripe
as well?
from payload.
It does:
❯ pnpm dev:generate-types plugin-stripe
> [email protected] dev:generate-types /Users/tyteen4a03/Documents/CodeProjects/test/payload
> ts-node -T ./test/generateTypes.ts "plugin-stripe"
Error: Cannot find module '../../../packages/payload/errors'
Require stack:
- /Users/tyteen4a03/Documents/CodeProjects/test/payload/test/plugin-stripe/webhooks/subscriptionCreatedOrUpdated.ts
- /Users/tyteen4a03/Documents/CodeProjects/test/payload/test/plugin-stripe/config.ts
- /Users/tyteen4a03/Documents/CodeProjects/test/payload/packages/payload/src/config/load.ts
- /Users/tyteen4a03/Documents/CodeProjects/test/payload/packages/payload/src/bin/generateTypes.ts
- /Users/tyteen4a03/Documents/CodeProjects/test/payload/test/generateTypes.ts
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/tyteen4a03/Documents/CodeProjects/test/payload/node_modules/.pnpm/@[email protected]/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/Users/tyteen4a03/Documents/CodeProjects/test/payload/test/plugin-stripe/webhooks/subscriptionCreatedOrUpdated.ts:11:17)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module.m._compile (/Users/tyteen4a03/Documents/CodeProjects/test/payload/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Object.require.extensions.<computed> [as .ts] (/Users/tyteen4a03/Documents/CodeProjects/test/payload/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected]/node_modules/ts-node/src/index.ts:1621:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/tyteen4a03/Documents/CodeProjects/test/payload/test/plugin-stripe/webhooks/subscriptionCreatedOrUpdated.ts',
'/Users/tyteen4a03/Documents/CodeProjects/test/payload/test/plugin-stripe/config.ts',
'/Users/tyteen4a03/Documents/CodeProjects/test/payload/packages/payload/src/config/load.ts',
'/Users/tyteen4a03/Documents/CodeProjects/test/payload/packages/payload/src/bin/generateTypes.ts',
'/Users/tyteen4a03/Documents/CodeProjects/test/payload/test/generateTypes.ts'
]
}
ELIFECYCLE Command failed with exit code 1.
from payload.
Also to note that it also generated a different upstream payload-types files (sorry I forgot to add it to the initial issue):
diff --git a/test/versions/payload-types.ts b/test/versions/payload-types.ts
index 2a7c29f38..09ab2e331 100644
--- a/test/versions/payload-types.ts
+++ b/test/versions/payload-types.ts
@@ -1,4 +1,5 @@
/* tslint:disable */
+/* eslint-disable */
/**
* This file was automatically generated by Payload.
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
@@ -7,59 +8,139 @@
export interface Config {
collections: {
- 'autosave-posts': AutosavePost
- 'draft-posts': DraftPost
- 'version-posts': VersionPost
- users: User
- }
+ 'disable-publish': DisablePublish;
+ posts: Post;
+ 'autosave-posts': AutosavePost;
+ 'draft-posts': DraftPost;
+ 'version-posts': VersionPost;
+ 'custom-ids': CustomId;
+ users: User;
+ 'payload-preferences': PayloadPreference;
+ 'payload-migrations': PayloadMigration;
+ };
globals: {
- 'autosave-global': AutosaveGlobal
- 'draft-global': DraftGlobal
- }
+ 'autosave-global': AutosaveGlobal;
+ 'draft-global': DraftGlobal;
+ 'disable-publish-global': DisablePublishGlobal;
+ };
+}
+export interface DisablePublish {
+ id: string;
from payload.
Sorry, I'm still not able to recreate this. Closing for now.
from payload.
Related Issues (20)
- Race condition causing documents to disappear from CMS
- Payload-Lexical: link tooltip pops up on selecting a decorator node HOT 2
- Payload-Lexical: link tooltip pops up on selecting a decorator node
- [3.0] JSON Field crashes if no default value provided HOT 2
- [3.0 CLI] Mongodb used when Postgres is selected HOT 4
- HTTP POST request to /api throw "Error: Unexpected end of form" at Multipart._final HOT 2
- Relationship filter not adding items to dropdown after making request for next page
- Incorrectly typed/exported CellComponentProps?
- Postgres Adapter: there is no parameter $1 HOT 5
- table names changed updating from 2.11.2 to 2.13.0 HOT 2
- Field is still saved even though it is set to read-only HOT 1
- plugin-cloud-storage: saving an existing upload gives FileUploadError HOT 1
- plugin-cloud-storage: S3 upload error HOT 3
- Incorrect collection displayed in list deletion toast HOT 1
- Cannot use Slate editor, webpack complains about missing exports that are clearly there HOT 1
- Postgres Index Name too long
- Bulk updating in 2.13.0 causing very inconsistent behaviour
- Inconsistent labelling of content status between list view and form view
- Cannot create first user because of form validation HOT 6
- InvalidFieldRelationship error when using idType: "uuid" (in beta.11, .12 & .14)
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.