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

JavaScript isn't being uploaded with the upload sub-command #360

Open
tschf opened this issue May 2, 2021 · 1 comment
Open

JavaScript isn't being uploaded with the upload sub-command #360

tschf opened this issue May 2, 2021 · 1 comment

Comments

@tschf
Copy link
Contributor

tschf commented May 2, 2021

Issue Description

I created a brand new APEX Nitro Project - the only change I made was to update the file apexnitro.cred.json and modify the .gitignore. When I perform the upload command javascript files are not being included in the upload.

C:\Users\TRENT\Projects\tmp> apex-nitro upload
APEX Nitro
=> building source C:\Users\TRENT\Projects\tmp\src ...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
=> build complete
...Now uploading!
Uploading to 1100 - Application Static Files...

SQLcl: Release 20.4 Production on Mon May 03 08:53:59 2021

Copyright (c) 1982, 2021, Oracle.  All rights reserved.

Connected to:
Oracle Database 19c EE High Perf Release 19.0.0.0.0 - Production
Version 19.9.0.0.0

Uploaded: C:\Users\TRENT\Projects\tmp\build\tmp.css
Uploaded: C:\Users\TRENT\Projects\tmp\build\tmp.min.css
Uploaded: C:\Users\TRENT\Projects\tmp\build\static\image.png

SQL> Disconnected from Oracle Database 19c EE High Perf Release 19.0.0.0.0 - Production
Version 19.9.0.0.0

Files were uploaded successfully.

APEX Nitro Version

5.0.2

Operating System

Windows

Node Version

15.12.0

Browser

N/A

APEX Version

20.2

Web Server

ORDS

The only thing that I could think of that may be causing the issue is the nonstandard end-point to the APEX App URL? The app path is like: /ords/dev_trent/f?p=1100. Note the additional path in the URL

..

And just to confirm, the javascript files are being built both on build and upload sub-commands:

image

@tschf
Copy link
Contributor Author

tschf commented May 2, 2021

Config file:

{
  "mode": "pro",
  "template": "apex-nitro-template-default",
  "libraryName": "tmp",
  "mainJs": "./src/main.js",
  "globals": {
    "apex": "apex"
  },
  "srcFolder": "./src",
  "distFolder": "./build",
  "external": [
    "apex"
  ],
  "version": "1.0.0",
  "cssExtensions": [
    "scss"
  ],
  "appUrl": "https://example.com/ords/dev_trent/f?p=1100",
  "launch": {
    "port": 4000,
    "ghostMode": false,
    "notify": true,
    "open": true,
    "openBuilder": false
  },
  "upload": {
    "destination": "application",
    "credentialsPath": "./apexnitro.cred.json"
  },
  "mainCss": "./src/main.scss"
}

@tschf tschf changed the title JavaScript isn't being upload with the upload sub-command JavaScript isn't being uploaded with the upload sub-command May 3, 2021
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

1 participant