jodyheavener / remark-plugin-oembed

MIT License
7 stars 0 forks source link

Package subpath './src/utils/providers.orginal.json' is not defined #13

Open TheCatLady opened 1 year ago

TheCatLady commented 1 year ago

I am seeing the following error:

[ERROR] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './src/utils/providers.orginal.json' is not defined by "exports" in <redacted>/node_modules/oembed-parser/package.json
    at new NodeError (node:internal/errors:400:5)
    at exportsNotFound (node:internal/modules/esm/resolve:361:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:697:9)
    at resolveExports (node:internal/modules/cjs/loader:538:36)
    at Module._findPath (node:internal/modules/cjs/loader:607:31)
    at Module._resolveFilename (node:internal/modules/cjs/loader:1025:27)
    at Module._load (node:internal/modules/cjs/loader:885:27)
    at Module.require (node:internal/modules/cjs/loader:1105:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (<redacted>/node_modules/remark-plugin-oembed/dist/index.js:4:58)

The following change in v0.1.1 appears to be the cause: https://github.com/jodyheavener/remark-plugin-oembed/commit/f4315adcf3f8746ec5c27a6ed4a08fd84fb81ebc#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80L8-R8

- import providers from 'oembed-parser/src/utils/providers.json';
+ import providers from 'oembed-parser/src/utils/providers.orginal.json';

Also, it appears that oembed-parser is now @extractus/oembed-extractor. (See https://www.npmjs.com/package/oembed-parser)

michaeltoohig commented 11 months ago

I'm also seeing this has there been an update?