Skip to content

Doesn't work with vite 4 #31

@mikob

Description

@mikob
(node:47994) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.              
1535 (Use `node --trace-warnings ...` to show where the warning was created)                                                      
1536 6:28:50 PM [vite] Error when evaluating SSR module /src/vue_app.ts: failed to import "oh-vue-icons/icons"                    
1537                                                                                                                              
1538 6:28:50 PM [vite] Error when evaluating SSR module virtual:@astrojs/vue/app:                                                 
1539                                                                                                                              
1540 6:28:50 PM [vite] Error when evaluating SSR module @astrojs/vue/server.js:                                                   
1541                                                                                                                              
1542  error   Unexpected token 'export'                                                                                           
1543 /home/mikob/workspace/hairgen.ai/astro-new/nebulous-neptune/node_modules/.pnpm/[email protected][email protected]/node_modules
1544 /oh-vue-icons/icons/index.js:2                                                                                               
1545 export * from "./ai";                                                                                                        
1546 ^^^^^^                                                                                                                       
1547                                                                                                                              
1548 SyntaxError: Unexpected token 'export'                                                                                       
1549     at internalCompileFunction (node:internal/vm:73:18)                                                                      
1550     at wrapSafe (node:internal/modules/cjs/loader:1176:20)                                                                   
1551     at Module._compile (node:internal/modules/cjs/loader:1218:27)                                                            
1552     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)                                                     
1553     at Module.load (node:internal/modules/cjs/loader:1117:32)                                                                
1554     at Module._load (node:internal/modules/cjs/loader:958:12)                                                                
1555     at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)                                                 
1556     at ModuleJob.run (node:internal/modules/esm/module_job:194:25)                                                           
1557     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)                                            
1558  error   Unexpected token 'export'                                                                                           
1559 /home/mikob/workspace/hairgen.ai/astro-new/nebulous-neptune/node_modules/.pnpm/[email protected][email protected]/node_modules
1560 /oh-vue-icons/icons/index.js:2                                                                                               
1561 export * from "./ai";                                                                                                        
1562 ^^^^^^                                                                                                                       
1563                                                                                                                              
1564 SyntaxError: Unexpected token 'export'                                                                                       
1565     at internalCompileFunction (node:internal/vm:73:18)                                                                      
1566     at wrapSafe (node:internal/modules/cjs/loader:1176:20)                                                                   
1567     at Module._compile (node:internal/modules/cjs/loader:1218:27)                                                            
1568     at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)                                                     
1569     at Module.load (node:internal/modules/cjs/loader:1117:32)                                                                
1570     at Module._load (node:internal/modules/cjs/loader:958:12)                                                                
1571     at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)                                                 
1572     at ModuleJob.run (node:internal/modules/esm/module_job:194:25)                                                           
1573     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) (x2)   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions