Giter Club home page Giter Club logo

Comments (4)

denolfe avatar denolfe commented on May 23, 2024

Wasn't able to recreate. Does this fail with just pnpm dev:generate-types plugin-stripe as well?

from payload.

tyteen4a03 avatar tyteen4a03 commented on May 23, 2024

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.

tyteen4a03 avatar tyteen4a03 commented on May 23, 2024

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.

denolfe avatar denolfe commented on May 23, 2024

Sorry, I'm still not able to recreate this. Closing for now.

from payload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.