You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked to make sure that this issue has not already been filed
Explanation
What is the expected behavior?
Vite should bundle and compile imports correctly
What is happening instead?
Error during compilation and bundling
What error message are you getting?
Error during compilation:
vite | file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:46525
vite | function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)).exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:o||!r?"./"===f.slice(0,2)?f:"./"+f:f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}
vite | ^
vite |
vite | Error: Missing "./src/tagify" specifier in "@yaireo/tagify" package
vite | at e (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:46525:25)
vite | at n (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:46525:627)
vite | at o (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:46525:1297)
vite | at resolveExportsOrImports (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:47146:18)
vite | at resolveDeepImport (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:47169:25)
vite | at tryNodeResolve (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:46934:16)
vite | at ResolveIdContext.resolveId (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:46684:19)
vite | at PluginContainer.resolveId (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:49463:17)
vite | at async Object.<anonymous> (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:66490:15)
vite | at async internalImporter (file:///Users/me/Projects/test/node_modules/vite/dist/node/chunks/dep-BcXSligG.js:36916:22)
vite |
vite | Node.js v20.15.0
Everything works fine if I add "./src/tagify": "./src/tagify": in node_modules/@yaireo/tagify/package.json
Prerequisites
Explanation
Vite should bundle and compile imports correctly
Error during compilation and bundling
Error during compilation:
Everything works fine if I add
"./src/tagify": "./src/tagify"
: in node_modules/@yaireo/tagify/package.jsonThe text was updated successfully, but these errors were encountered: