payload-enchants icon indicating copy to clipboard operation
payload-enchants copied to clipboard

better-use-as-title: Unknown file extension ".css"

Open Dan6erbond opened this issue 1 year ago • 2 comments

I created https://github.com/payloadcms/payload/issues/7908 already but since this might be an issue with the plugin I decided to post here as well.

When using @payload-enchants/better-use-as-title with payload: 3.0.0-beta.94 and next: 15.0.0-canary.132 I get the following error on startup:

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for C:\Users\morav\Documents\Projects\localbites\node_modules\react-image-crop\dist\ReactCrop.css
    at new NodeError (node:internal/errors:405:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:136:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:182:36)
    at defaultLoad (node:internal/modules/esm/load:101:20)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at load (file:///C:/Users/morav/Documents/Projects/localbites/node_modules/tsx/dist/esm/index.mjs?1724832251621:2:1768)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at Hooks.load (node:internal/modules/esm/hooks:447:26)
    at handleMessage (node:internal/modules/esm/worker:196:24)
    at Immediate.checkForMessages (node:internal/modules/esm/worker:138:28) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

Dan6erbond avatar Aug 28 '24 08:08 Dan6erbond

Thanks, this PR https://github.com/r1tsuu/payload-enchants/pull/92 will solve it

r1tsuu avatar Aug 28 '24 08:08 r1tsuu

fyi. i still get this, and NPM only has up to 1.2.2 for the better-use-as-title package

dakdevs avatar Sep 04 '25 04:09 dakdevs