Closed slaveeks closed 1 year ago
You might need to transpile library according Nuxt docs: https://nuxt.com/docs/guide/concepts/esm/#transpiling-libraries
Add build
section to your nuxt.config.ts
file:
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
// ...
+ build: {
+ transpile: ['@codexteam/icons']
+ },
})
If it will be a common problem, we can upgrade the readme with this tip.
When I use the following commands for building app, which uses icons package, everything is okay:
But if I use this command for building:
I face with this error: