\r\n \u003C/div>\r\n\u003C/template>\r\n\r\n\u003Cscript>\r\nimport axios from \"axios\";\r\nexport default {\r\n emits: ['input'],\r\n props: {\r\n value: String\r\n },\r\n data() {\r\n return {\r\n items: []\r\n };\r\n },\r\n async created() {\r\n const response = await axios.get(\r\n \"https://some-api.com\"\r\n );\r\n this.items = response.data;\r\n },\r\n};\r\n\u003C/script>\r\n```\r\n```\r\n{\r\n \"name\": \"picker\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"\",\r\n \"main\": \"index.js\",\r\n \"scripts\": {\r\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\r\n },\r\n \"keywords\": [],\r\n \"author\": \"\",\r\n \"license\": \"ISC\",\r\n \"directus:extension\": {\r\n \"type\": \"interface\",\r\n \"path\": \"dist/index.js\",\r\n \"source\": \"src/index.js\",\r\n \"host\": \"^9.0.0-rc.91\",\r\n \"hidden\": false\r\n },\r\n \"devDependencies\": {\r\n \"@directus/extension-sdk\": \"^9.0.0-rc.91\",\r\n },\r\n \"dependencies\": {\r\n \"axios\": \"^0.21.1\"\r\n }\r\n}\r\n```\r\n\r\n### What version of Directus are you using?\r\n\r\n9.0.0-rc.91\r\n\r\n### What version of Node.js are you using?\r\n\r\nv12.20.2\r\n\r\n### What database are you using?\r\n\r\nPostgres 12\r\n\r\n### What browser are you using?\r\n\r\nChrome\r\n\r\n### What operating system are you using?\r\n\r\nMacOS\r\n\r\n### How are you deploying Directus?\r\n\r\nDocker",[2966],{"name":2927,"color":2928},7620,"Extensions building throws a \"@rollup/plugin-json\" related error","2024-02-03T16:04:11Z","https://github.com/directus/directus/issues/7620",0.7119307,{"description":2973,"labels":2974,"number":2975,"owner":2917,"repository":2917,"state":2934,"title":2976,"updated_at":2977,"url":2978,"score":2979},"### Describe the Bug\r\n\r\nCurrently, I'm working on a project that uses Directus as a thin client with Electron.\r\nThe idea comes from my company and my private project.\r\nWe host a database somewhere (it is very easy and cheap). Then the Directus clients (executable application) can connect to this database.\r\nI'm almost done but I have a problem. When I'm compiling the application with Electron, Directus wants to load package.json from the wrong place. As I saw I can manage a lot of things from `.env` but the allowed packages for Directus Flows isn't working because the path of package.json is hardcoded in `api/src/extensions.ts` file.\r\n\r\n### To Reproduce\r\n\r\nClone this repository: https://github.com/nfjodor/directus-electron\r\nThen checkout to initial commit: `git checkout 55d88536a3983134ad6ef7d6c69165c19b736e70`\r\nThen run `npm i && npm run package`\r\nThen run the electron app from `out` folder.\r\nThen see the console, an error happens and Directus Flows couldn't load the packages (in this case the fs-extra package).\r\nIf you wan't to test it, the example admin user is norbi.boci@gmail.com and the password is 123456\r\nAfter that, you need to edit the created Flow to trigger collections Release and Version.\r\n\r\n### Errors Shown\r\n\r\nError: Current folder does not contain a package.json file\r\n\r\n\r\n### What version of Directus are you using?\r\n\r\n9.22.4\r\n\r\n### What version of Node.js are you using?\r\n\r\nnot relevant\r\n\r\n### What database are you using?\r\n\r\nnot relevant\r\n\r\n### What browser are you using?\r\n\r\nnot relevant\r\n\r\n### How are you deploying Directus?\r\n\r\nlocally",[],17524,"Add package extensions path to env variables","2024-02-01T20:02:36Z","https://github.com/directus/directus/issues/17524",0.72495943,{"description":2981,"labels":2982,"number":2983,"owner":2917,"repository":2917,"state":2934,"title":2984,"updated_at":2985,"url":2986,"score":2987},"Due to the way rollup automatically replaces process, we had to hack around that value by adding in a fake character that is replaced in the app (`process\\u200b.env.NODE_ENV`, see https://github.com/directus/directus/pull/6284). We should also do this for the docs website.\r\n\r\nI tried doing it through string-replace-loader in VuePress' configureWebpack config, but ran into all sorts of dependency mismatches :| ",[],6292,"Auto-replace escape character in docs website","2024-02-03T18:03:38Z","https://github.com/directus/directus/issues/6292",0.72515744,{"description":2989,"labels":2990,"number":2991,"owner":2917,"repository":2917,"state":2934,"title":2992,"updated_at":2993,"url":2994,"score":2995},"### Describe the Bug\n\nIn /var/www the run of `npm init directus-project myproject` shows\r\n```\r\nnpm init directus-project myproject\r\n✖ Installing Directus\r\nnpm WARN ERESOLVE overriding peer dependency\r\nnpm WARN While resolving: rollup-plugin-styles@4.0.0\r\nnpm WARN Found: rollup@3.29.4\r\nnpm WARN node_modules/@directus/extensions-sdk/node_modules/rollup\r\nnpm WARN rollup@\"3.29.4\" from @directus/extensions-sdk@10.3.0\r\nnpm WARN node_modules/@directus/extensions-sdk\r\nnpm WARN @directus/extensions-sdk@\"10.3.0\" from @directus/api@15.0.0\r\nnpm WARN node_modules/@directus/api\r\nnpm WARN 1 more (rollup-plugin-esbuild)\r\nnpm WARN\r\nnpm WARN Could not resolve dependency:\r\nnpm WARN peer rollup@\"^2.63.0\" from rollup-plugin-styles@4.0.0\r\nnpm WARN node_modules/@directus/extensions-sdk/node_modules/rollup-plugin-styles\r\nnpm WARN rollup-plugin-styles@\"4.0.0\" from @directus/extensions-sdk@10.3.0\r\nnpm WARN node_modules/@directus/extensions-sdk\r\nnpm WARN\r\nnpm WARN Conflicting peer dependency: rollup@2.79.1\r\nnpm WARN node_modules/rollup\r\nnpm WARN peer rollup@\"^2.63.0\" from rollup-plugin-styles@4.0.0\r\nnpm WARN node_modules/@directus/extensions-sdk/node_modules/rollup-plugin-styles\r\nnpm WARN rollup-plugin-styles@\"4.0.0\" from @directus/extensions-sdk@10.3.0\r\nnpm WARN node_modules/@directus/extensions-sdk\r\nnpm WARN deprecated @types/cssnano@5.1.0: This is a stub types definition. cssnano provides its own type definitions, so you do not need this installed.\r\nnpm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs\r\nnpm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility\r\nnpm WARN deprecated har-validator@5.1.5: this library is no longer supported\r\nnpm WARN deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog\r\nnpm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.\r\nnpm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\r\nnpm WARN deprecated json2csv@5.0.7: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.\r\nnpm ERR! code 1\r\nnpm ERR! path /var/www\r\nnpm ERR! command failed\r\nnpm ERR! command sh -c create-directus-project myproject\r\n\r\n```\n\n### To Reproduce\n\nOn\r\n```\r\nDistributor ID: Debian\r\nDescription: Debian GNU/Linux 11 (bullseye)\r\nRelease: 11\r\nCodename: bullseye\r\n```\r\n```\r\nnode -v\r\nv18.19.0\r\n```\r\n```\r\nnpm -v\r\n9.8.1\r\n```\r\nrun `npm init directus-project myproject`\n\n### Directus Version\n\nv10.8.3\n\n### Hosting Strategy\n\nSelf-Hosted (Custom)",[],21103,"Self-Hosted installation of v10.8.3 ends in error","2024-03-17T02:32:55Z","https://github.com/directus/directus/issues/21103",0.72548425,{"description":2997,"labels":2998,"number":2999,"owner":2917,"repository":2917,"state":2934,"title":3000,"updated_at":3001,"url":3002,"score":3003},"### Describe the Bug\n\nHello, there is a problem with custom extensions. By default, extensions created with `npx create-directus-extension@latest` are built in the `dist` folder as marked in the package.json file.\r\n\r\n```\r\n\"directus:extension\": {\r\n \"type\": \"endpoint\",\r\n \"path\": \"dist/index.js\",\r\n \"source\": \"src/index.js\",\r\n \"host\": \"^10.1.14\"\r\n},\r\n```\r\n\r\nDirectus seems to look for compiled files at the root of the extension :\r\n\r\n```\r\n[19:18:23.833] WARN: Couldn't bundle App extensions\r\n[19:18:23.833] WARN: Could not resolve \"./extensions/panels/hello/index.js\" from \"virtual:entry\"\r\n err: {\r\n \"type\": \"Error\",\r\n \"message\": \"Could not resolve \\\"./extensions/panels/hello/index.js\\\" from \\\"\\u0000virtual:entry\\\"\",\r\n \"stack\":\r\n RollupError: Could not resolve \"./extensions/panels/hello/index.js\" from \"virtual:entry\"\r\n at error (file:///directus/node_modules/.pnpm/rollup@3.22.0/node_modules/rollup/dist/es/shared/node-entry.js:2125:30)\r\n at ModuleLoader.handleInvalidResolvedId (file:///directus/node_modules/.pnpm/rollup@3.22.0/node_modules/rollup/dist/es/shared/node-entry.js:23979:24)\r\n at file:///directus/node_modules/.pnpm/rollup@3.22.0/node_modules/rollup/dist/es/shared/node-entry.js:23941:26\r\n \"code\": \"UNRESOLVED_IMPORT\",\r\n \"exporter\": \"./extensions/panels/hello/index.js\",\r\n \"id\": \"\\u0000virtual:entry\",\r\n```\r\n\r\n**To get around the problem, simply remove `/dist` from the path in the package.json file.**\r\n\r\nIt would be great to correct this directly in Directus or in the `create-directus-extension` module which automatically generates this file.\r\n\r\nthanks \n\n### To Reproduce\n\n```\r\nnpx create-directus-extension@latest\r\n...\r\ncd \"extension name\"\r\nnpm run dev\r\n```\n\n### Directus Version\n\n10.7.2\n\n### Hosting Strategy\n\nSelf-Hosted (Docker Image)",[],20399,"Directus extension build in dist folder.","2024-01-31T21:30:45Z","https://github.com/directus/directus/issues/20399",0.7256329,["Reactive",3005],{},["Set"],["ShallowReactive",3008],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fSo62Q8_zpwNgEcJUKVyBQoaMmnVO4psnap8lyUkI5_E":-1},"/directus/directus/23856"]