#import utils folder from a layer via extending from github repo

4 messages · Page 1 of 1 (latest)

little sundial
#

Hi, I would like to be able to import helper functions/composables from a nuxt layer into a project via adding the layer's github repo to the defineNuxtConfig extends array.

After I add the github repo to extends array, how do I reference helper functions from the layer's utils folder or reference composables from the composables folder?

basically, how do I import them to the project that is extending the layer? i.e. import { helperFunction } from '<unknown layer path>/utils'?

oak sail
#

I am stuck on this too!

narrow forge
#

Yeah. Maybe this will be resolved with the named layers feature. So we will import it like ~layerName/something.

hushed forge