Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually including packages #57

Open
alexcroox opened this issue Jan 2, 2021 · 3 comments
Open

Manually including packages #57

alexcroox opened this issue Jan 2, 2021 · 3 comments

Comments

@alexcroox
Copy link

alexcroox commented Jan 2, 2021

Is it possible to manually include deps? I have a Nuxt app which defines these in nuxt.config.js so I doubt this plugin could auto pick them up, which is fine I don't mind adding them manually, but I can't work out where and attempts have failed:

custom:
  includeDependencies:
    always:
      - 'api/**'
      - 'node_modules/nuxt-i18n' <-- this one
     
functions:
  render:
    [...]
    package:
      excludeDevDependencies: true
      exclude:
        - 'assets/**'
        - 'components/**'
        - 'layouts/**'
        - 'components/**'
        - 'middleware/**'
        - 'pages/**'
        - 'plugins/**'
        - '.github/**'
        - '.vscode/**'
      include:
        - '.nuxt/**'
        - 'server/edge.js'
        - 'nuxt.config.js'
        - 'node_modules/nuxt-i18n' <-- tried it here too
@juandans01
Copy link

Exact same problem here

@dougmoscrop
Copy link
Owner

is it for sure in node_modules/nuxt-i18n? Did you try /**?

@juandans01
Copy link

juandans01 commented Jan 25, 2021

Hi, thanks for answering! so, i tried doing this

custom:
  includeDependencies:
    always:
      - 'node_modules/nuxt-i18n/**'

And there is a new error on deploy, maybe this is already a problem of nuxt-i18n? nevertheless it makes imposible using the library for me, any help help is appreciated

Error: Cannot find module '../middleware' from '<project>/node_modules/nuxt-i18n/src/templates'

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants