rubyonjets / jets

Ruby on Jets
http://rubyonjets.com
MIT License
2.6k stars 181 forks source link

`jets build` fails #217

Closed brad-larson closed 5 years ago

brad-larson commented 5 years ago

Checklist

My Environment

Software Version
Operating System 10.14.3
Jets 1.8.9
Ruby 2.5.3
Node 8.11.3

Expected Behaviour

I expect the following to not error:

jets new api --database=postgresql
cd api
jets build

I also expect the following to work:

jets generate scaffold Post title:string
jets db:create db:migrate
jets server

Current Behavior

It fails:

> jets build
Building project for Lambda...
=> Compling assets in current project directory
=> yarn install
...
=> JETS_ENV=development bin/webpack
Traceback (most recent call last):
     ...
        1: from /Users/brad/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/webpacker-1a012c92ef7b/lib/webpacker/webpack_runner.rb:11:in `block in run'
/Users/brad/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/webpacker-1a012c92ef7b/lib/webpacker/webpack_runner.rb:11:in `exec': No such file or directory - /Users/brad/src/api/node_modules/.bin/webpack (Errno::ENOENT)
JETS_ENV=development bin/webpack failed to run.
/Users/brad/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/jets-1.8.9/lib/jets/builders/code_builder.rb:200:in `compile_assets'

So does this:

> jets server
...
[Webpacker] Compiling…
[Webpacker] Compilation failed:
bundler: failed to load command: webpack (/Users/brad/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bin/webpack)

Errno::ENOENT: No such file or directory - /Users/brad/src/api/node_modules/.bin/webpack
  /Users/brad/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/bundler/gems/webpacker-1a012c92ef7b/lib/webpacker/webpack_runner.rb:11:in `exec'
...
ActionView::Template::Error: Webpacker can't find application.js in /Users/brad/src/api/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.

Solution Suggestion

It seems like there is an issue with the webpacker configuration.

tongueroo commented 5 years ago
Attempt at Reproduction ```bash $ jets new api --database=postgresql Creating new project called api. create api create api/.env.development create api/.env.test create api/.env create api/.gitignore create api/.jetskeep create api/.rspec create api/Gemfile create api/Procfile create api/README.md create api/Rakefile create api/app/controllers/application_controller.rb create api/app/helpers/application_helper.rb create api/app/jobs/application_job.rb create api/app/models/application_item.rb create api/app/models/application_record.rb create api/app/views/layouts/application.html.erb create api/config.ru create api/config/application.rb create api/config/database.yml create api/config/dynamodb.yml create api/config/environments/development.rb create api/config/environments/production.rb create api/config/environments/test.rb create api/config/routes.rb create api/db/.gitkeep create api/public/404.html create api/public/422.html create api/public/500.html create api/public/favicon.ico create api/public/index.html create api/spec/controllers/posts_controller_spec.rb create api/spec/fixtures/payloads/posts-index.json create api/spec/fixtures/payloads/posts-show.json create api/spec/spec_helper.rb Fetching https://github.com/tongueroo/webpacker.git Fetching gem metadata from https://rubygems.org/........ Resolving dependencies... Using rake 12.3.2 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using activesupport 5.2.2 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.1 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.0.4 Using actionview 5.2.2 Using rack 2.0.6 Using rack-test 1.1.0 Using actionpack 5.2.2 Using globalid 0.4.2 Using activejob 5.2.2 Using mini_mime 1.0.1 Using mail 2.7.1 Using actionmailer 5.2.2 Using activemodel 5.2.2 Using arel 9.0.0 Using activerecord 5.2.2 Using public_suffix 3.0.3 Using addressable 2.6.0 Using aws-eventstream 1.0.2 Using aws-partitions 1.144.0 Using aws-sigv4 1.0.3 Using jmespath 1.4.0 Using aws-sdk-core 3.46.2 Using aws-sdk-apigateway 1.23.0 Using aws-sdk-cloudformation 1.14.0 Using aws-sdk-cloudwatchlogs 1.13.0 Using aws-sdk-dynamodb 1.21.0 Using aws-sdk-kinesis 1.9.0 Using aws-sdk-kms 1.13.0 Using aws-sdk-lambda 1.18.0 Using aws-sdk-s3 1.31.0 Using aws-sdk-sns 1.9.0 Using aws-sdk-sqs 1.10.0 Using bundler 2.0.1 Using byebug 11.0.0 Using regexp_parser 1.3.0 Using xpath 3.2.0 Using capybara 3.14.0 Using cfnresponse 0.4.0 Using diff-lcs 1.3 Using dotenv 2.7.1 Using dynomite 1.2.2 Using json 2.2.0 Using gems 1.1.1 Using hashie 3.6.0 Using jets-html-sanitizer 1.0.4 Using kramdown 2.1.0 Using memoist 0.16.0 Using mimemagic 0.3.3 Using method_source 0.9.2 Using thor 0.20.3 Using railties 5.2.2 Using rainbow 3.0.0 Using recursive-open-struct 1.1.0 Using text-table 1.2.4 Using jets 1.8.9 Using launchy 2.4.3 Using pg 1.1.4 Using rack-proxy 0.6.5 Using rspec-support 3.8.0 Using rspec-core 3.8.0 Using rspec-expectations 3.8.2 Using rspec-mocks 3.8.0 Using rspec 3.8.0 Using shotgun 0.9.2 Using webpacker 3.2.0 from https://github.com/tongueroo/webpacker.git (at jets@1a012c9) Bundle complete! 10 Gemfile dependencies, 77 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. run jets webpacker:install from "." create config/webpacker.yml Copying webpack core config create config/webpack create config/webpack/development.js create config/webpack/environment.js create config/webpack/production.js create config/webpack/staging.js create config/webpack/test.js Copying .postcssrc.yml to app root directory create .postcssrc.yml Copying .babelrc to app root directory create .babelrc Installing binstubs run bundle binstubs webpacker from "." append .gitignore Installing all JavaScript dependencies run yarn add @rails/webpacker coffeescript@1.12.7 from "." yarn add v1.9.4 info No lockfile found. [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.7: The platform "linux" is incompatible with this module. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.0.1" has unmet peer dependency "typescript@*". [4/4] Building fresh packages... success Saved lockfile. success Saved 580 new dependencies. info Direct dependencies β”œβ”€ @rails/webpacker@4.0.2 └─ coffeescript@1.12.7 info All dependencies β”œβ”€ @babel/core@7.3.4 β”œβ”€ @babel/helper-builder-binary-assignment-operator-visitor@7.1.0 β”œβ”€ @babel/helper-call-delegate@7.1.0 β”œβ”€ @babel/helper-create-class-features-plugin@7.3.4 β”œβ”€ @babel/helper-define-map@7.1.0 β”œβ”€ @babel/helper-explode-assignable-expression@7.1.0 β”œβ”€ @babel/helper-replace-supers@7.3.4 β”œβ”€ @babel/helper-wrap-function@7.2.0 β”œβ”€ @babel/helpers@7.3.1 β”œβ”€ @babel/highlight@7.0.0 β”œβ”€ @babel/plugin-proposal-async-generator-functions@7.2.0 β”œβ”€ @babel/plugin-proposal-class-properties@7.3.4 β”œβ”€ @babel/plugin-proposal-json-strings@7.2.0 β”œβ”€ @babel/plugin-proposal-optional-catch-binding@7.2.0 β”œβ”€ @babel/plugin-proposal-unicode-property-regex@7.2.0 β”œβ”€ @babel/plugin-syntax-dynamic-import@7.2.0 β”œβ”€ @babel/plugin-transform-arrow-functions@7.2.0 β”œβ”€ @babel/plugin-transform-async-to-generator@7.3.4 β”œβ”€ @babel/plugin-transform-block-scoped-functions@7.2.0 β”œβ”€ @babel/plugin-transform-block-scoping@7.3.4 β”œβ”€ @babel/plugin-transform-classes@7.3.4 β”œβ”€ @babel/plugin-transform-computed-properties@7.2.0 β”œβ”€ @babel/plugin-transform-destructuring@7.3.2 β”œβ”€ @babel/plugin-transform-dotall-regex@7.2.0 β”œβ”€ @babel/plugin-transform-duplicate-keys@7.2.0 β”œβ”€ @babel/plugin-transform-exponentiation-operator@7.2.0 β”œβ”€ @babel/plugin-transform-for-of@7.2.0 β”œβ”€ @babel/plugin-transform-function-name@7.2.0 β”œβ”€ @babel/plugin-transform-literals@7.2.0 β”œβ”€ @babel/plugin-transform-modules-amd@7.2.0 β”œβ”€ @babel/plugin-transform-modules-commonjs@7.2.0 β”œβ”€ @babel/plugin-transform-modules-systemjs@7.3.4 β”œβ”€ @babel/plugin-transform-modules-umd@7.2.0 β”œβ”€ @babel/plugin-transform-named-capturing-groups-regex@7.3.0 β”œβ”€ @babel/plugin-transform-new-target@7.0.0 β”œβ”€ @babel/plugin-transform-object-super@7.2.0 β”œβ”€ @babel/plugin-transform-parameters@7.3.3 β”œβ”€ @babel/plugin-transform-runtime@7.3.4 β”œβ”€ @babel/plugin-transform-shorthand-properties@7.2.0 β”œβ”€ @babel/plugin-transform-spread@7.2.2 β”œβ”€ @babel/plugin-transform-sticky-regex@7.2.0 β”œβ”€ @babel/plugin-transform-template-literals@7.2.0 β”œβ”€ @babel/plugin-transform-typeof-symbol@7.2.0 β”œβ”€ @babel/plugin-transform-unicode-regex@7.2.0 β”œβ”€ @babel/polyfill@7.2.5 β”œβ”€ @babel/preset-env@7.3.4 β”œβ”€ @babel/runtime@7.3.4 β”œβ”€ @rails/webpacker@4.0.2 β”œβ”€ @types/q@1.5.1 β”œβ”€ @webassemblyjs/floating-point-hex-parser@1.8.5 β”œβ”€ @webassemblyjs/helper-code-frame@1.8.5 β”œβ”€ @webassemblyjs/helper-fsm@1.8.5 β”œβ”€ @webassemblyjs/helper-wasm-section@1.8.5 β”œβ”€ @webassemblyjs/wasm-edit@1.8.5 β”œβ”€ @webassemblyjs/wasm-opt@1.8.5 β”œβ”€ @xtuc/ieee754@1.2.0 β”œβ”€ abbrev@1.1.1 β”œβ”€ acorn-dynamic-import@4.0.0 β”œβ”€ acorn@6.1.1 β”œβ”€ ajv-errors@1.0.1 β”œβ”€ ajv@6.10.0 β”œβ”€ amdefine@1.0.1 β”œβ”€ ansi-styles@3.2.1 β”œβ”€ anymatch@2.0.0 β”œβ”€ are-we-there-yet@1.1.5 β”œβ”€ argparse@1.0.10 β”œβ”€ arr-flatten@1.1.0 β”œβ”€ array-find-index@1.0.2 β”œβ”€ asn1.js@4.10.1 β”œβ”€ asn1@0.2.4 β”œβ”€ assert@1.4.1 β”œβ”€ assign-symbols@1.0.0 β”œβ”€ async-each@1.0.1 β”œβ”€ async-foreach@0.1.3 β”œβ”€ asynckit@0.4.0 β”œβ”€ atob@2.1.2 β”œβ”€ autoprefixer@9.4.10 β”œβ”€ aws-sign2@0.7.0 β”œβ”€ aws4@1.8.0 β”œβ”€ babel-loader@8.0.5 β”œβ”€ babel-plugin-dynamic-import-node@2.2.0 β”œβ”€ babel-plugin-macros@2.5.0 β”œβ”€ base@0.11.2 β”œβ”€ base64-js@1.3.0 β”œβ”€ bcrypt-pbkdf@1.0.2 β”œβ”€ big.js@5.2.2 β”œβ”€ binary-extensions@1.13.0 β”œβ”€ block-stream@0.0.9 β”œβ”€ bluebird@3.5.3 β”œβ”€ boolbase@1.0.0 β”œβ”€ brace-expansion@1.1.11 β”œβ”€ braces@2.3.2 β”œβ”€ browserify-aes@1.2.0 β”œβ”€ browserify-cipher@1.0.1 β”œβ”€ browserify-des@1.0.2 β”œβ”€ browserify-sign@4.0.4 β”œβ”€ browserify-zlib@0.2.0 β”œβ”€ buffer-xor@1.0.3 β”œβ”€ buffer@4.9.1 β”œβ”€ builtin-status-codes@3.0.0 β”œβ”€ cacache@11.3.2 β”œβ”€ cache-base@1.0.1 β”œβ”€ caller-callsite@2.0.0 β”œβ”€ caller-path@2.0.0 β”œβ”€ callsites@2.0.0 β”œβ”€ camelcase-keys@2.1.0 β”œβ”€ caniuse-lite@1.0.30000943 β”œβ”€ case-sensitive-paths-webpack-plugin@2.2.0 β”œβ”€ caseless@0.12.0 β”œβ”€ chokidar@2.1.2 β”œβ”€ chownr@1.1.1 β”œβ”€ chrome-trace-event@1.0.0 β”œβ”€ cipher-base@1.0.4 β”œβ”€ class-utils@0.3.6 β”œβ”€ cliui@4.1.0 β”œβ”€ clone-deep@2.0.2 β”œβ”€ coa@2.0.2 β”œβ”€ code-point-at@1.1.0 β”œβ”€ coffeescript@1.12.7 β”œβ”€ collection-visit@1.0.0 β”œβ”€ color-convert@1.9.3 β”œβ”€ color-name@1.1.3 β”œβ”€ color-string@1.5.3 β”œβ”€ color@3.1.0 β”œβ”€ combined-stream@1.0.7 β”œβ”€ commander@2.19.0 β”œβ”€ commondir@1.0.1 β”œβ”€ compression-webpack-plugin@2.0.0 β”œβ”€ concat-map@0.0.1 β”œβ”€ concat-stream@1.6.2 β”œβ”€ console-browserify@1.1.0 β”œβ”€ console-control-strings@1.1.0 β”œβ”€ constants-browserify@1.0.0 β”œβ”€ convert-source-map@1.6.0 β”œβ”€ copy-concurrently@1.0.5 β”œβ”€ copy-descriptor@0.1.1 β”œβ”€ core-js@2.6.5 β”œβ”€ core-util-is@1.0.2 β”œβ”€ cosmiconfig@5.1.0 β”œβ”€ create-ecdh@4.0.3 β”œβ”€ create-hmac@1.1.7 β”œβ”€ cross-spawn@6.0.5 β”œβ”€ crypto-browserify@3.12.0 β”œβ”€ css-blank-pseudo@0.1.4 β”œβ”€ css-color-names@0.0.4 β”œβ”€ css-declaration-sorter@4.0.1 β”œβ”€ css-has-pseudo@0.10.0 β”œβ”€ css-loader@2.1.1 β”œβ”€ css-prefers-color-scheme@3.1.1 β”œβ”€ css-select-base-adapter@0.1.1 β”œβ”€ css-select@2.0.2 β”œβ”€ css-tree@1.0.0-alpha.28 β”œβ”€ css-unit-converter@1.1.1 β”œβ”€ css-url-regex@1.1.0 β”œβ”€ css-what@2.1.3 β”œβ”€ cssdb@4.4.0 β”œβ”€ cssesc@2.0.0 β”œβ”€ cssnano-preset-default@4.0.7 β”œβ”€ cssnano-util-raw-cache@4.0.1 β”œβ”€ cssnano-util-same-parent@4.0.1 β”œβ”€ cssnano@4.1.10 β”œβ”€ csso@3.5.1 β”œβ”€ currently-unhandled@0.4.1 β”œβ”€ cyclist@0.2.2 β”œβ”€ dashdash@1.14.1 β”œβ”€ date-now@0.1.4 β”œβ”€ debug@2.6.9 β”œβ”€ decode-uri-component@0.2.0 β”œβ”€ define-properties@1.1.3 β”œβ”€ delayed-stream@1.0.0 β”œβ”€ delegates@1.0.0 β”œβ”€ des.js@1.0.0 β”œβ”€ detect-file@1.0.0 β”œβ”€ diffie-hellman@5.0.3 β”œβ”€ dom-serializer@0.1.1 β”œβ”€ domain-browser@1.2.0 β”œβ”€ domelementtype@1.3.1 β”œβ”€ domutils@1.7.0 β”œβ”€ dot-prop@4.2.0 β”œβ”€ duplexify@3.7.1 β”œβ”€ ecc-jsbn@0.1.2 β”œβ”€ electron-to-chromium@1.3.114 β”œβ”€ emojis-list@2.1.0 β”œβ”€ entities@1.1.2 β”œβ”€ errno@0.1.7 β”œβ”€ error-ex@1.3.2 β”œβ”€ es-abstract@1.13.0 β”œβ”€ es-to-primitive@1.2.0 β”œβ”€ escape-string-regexp@1.0.5 β”œβ”€ eslint-scope@4.0.2 β”œβ”€ esprima@4.0.1 β”œβ”€ esrecurse@4.2.1 β”œβ”€ estraverse@4.2.0 β”œβ”€ events@3.0.0 β”œβ”€ execa@1.0.0 β”œβ”€ expand-brackets@2.1.4 β”œβ”€ expand-tilde@2.0.2 β”œβ”€ extend@3.0.2 β”œβ”€ extglob@2.0.4 β”œβ”€ extsprintf@1.3.0 β”œβ”€ fast-deep-equal@2.0.1 β”œβ”€ fast-json-stable-stringify@2.0.0 β”œβ”€ file-loader@3.0.1 β”œβ”€ fill-range@4.0.0 β”œβ”€ findup-sync@2.0.0 β”œβ”€ flatted@2.0.0 β”œβ”€ flatten@1.0.2 β”œβ”€ flush-write-stream@1.1.1 β”œβ”€ for-in@1.0.2 β”œβ”€ for-own@1.0.0 β”œβ”€ forever-agent@0.6.1 β”œβ”€ form-data@2.3.3 β”œβ”€ from2@2.3.0 β”œβ”€ fs.realpath@1.0.0 β”œβ”€ fstream@1.0.11 β”œβ”€ gauge@2.7.4 β”œβ”€ gaze@1.1.3 β”œβ”€ get-stream@4.1.0 β”œβ”€ get-value@2.0.6 β”œβ”€ getpass@0.1.7 β”œβ”€ glob-parent@3.1.0 β”œβ”€ glob@7.1.3 β”œβ”€ global-prefix@1.0.2 β”œβ”€ globule@1.2.1 β”œβ”€ har-schema@2.0.0 β”œβ”€ har-validator@5.1.3 β”œβ”€ has-ansi@2.0.0 β”œβ”€ has-unicode@2.0.1 β”œβ”€ has-value@1.0.0 β”œβ”€ has-values@1.0.0 β”œβ”€ hash.js@1.1.7 β”œβ”€ hex-color-regex@1.1.0 β”œβ”€ hmac-drbg@1.0.1 β”œβ”€ hosted-git-info@2.7.1 β”œβ”€ hsl-regex@1.0.0 β”œβ”€ hsla-regex@1.0.0 β”œβ”€ html-comment-regex@1.1.2 β”œβ”€ http-signature@1.2.0 β”œβ”€ https-browserify@1.0.0 β”œβ”€ icss-replace-symbols@1.1.0 β”œβ”€ icss-utils@4.1.0 β”œβ”€ ieee754@1.1.12 β”œβ”€ import-cwd@2.1.0 β”œβ”€ import-fresh@2.0.0 β”œβ”€ import-from@2.1.0 β”œβ”€ import-local@2.0.0 β”œβ”€ in-publish@2.0.0 β”œβ”€ indent-string@2.1.0 β”œβ”€ indexof@0.0.1 β”œβ”€ inflight@1.0.6 β”œβ”€ ini@1.3.5 β”œβ”€ interpret@1.2.0 β”œβ”€ invariant@2.2.4 β”œβ”€ invert-kv@2.0.0 β”œβ”€ is-absolute-url@2.1.0 β”œβ”€ is-accessor-descriptor@1.0.0 β”œβ”€ is-arrayish@0.2.1 β”œβ”€ is-binary-path@1.0.1 β”œβ”€ is-color-stop@1.1.0 β”œβ”€ is-data-descriptor@1.0.0 β”œβ”€ is-date-object@1.0.1 β”œβ”€ is-descriptor@1.0.2 β”œβ”€ is-extglob@2.1.1 β”œβ”€ is-finite@1.0.2 β”œβ”€ is-fullwidth-code-point@1.0.0 β”œβ”€ is-obj@1.0.1 β”œβ”€ is-plain-object@2.0.4 β”œβ”€ is-regex@1.0.4 β”œβ”€ is-resolvable@1.1.0 β”œβ”€ is-stream@1.1.0 β”œβ”€ is-svg@3.0.0 β”œβ”€ is-symbol@1.0.2 β”œβ”€ is-typedarray@1.0.0 β”œβ”€ is-utf8@0.2.1 β”œβ”€ is-windows@1.0.2 β”œβ”€ isarray@1.0.0 β”œβ”€ isexe@2.0.0 β”œβ”€ isstream@0.1.2 β”œβ”€ js-base64@2.5.1 β”œβ”€ js-levenshtein@1.1.6 β”œβ”€ js-tokens@4.0.0 β”œβ”€ js-yaml@3.12.2 β”œβ”€ jsesc@2.5.2 β”œβ”€ json-parse-better-errors@1.0.2 β”œβ”€ json-schema-traverse@0.4.1 β”œβ”€ json-schema@0.2.3 β”œβ”€ json-stringify-safe@5.0.1 β”œβ”€ json5@2.1.0 β”œβ”€ jsprim@1.4.1 β”œβ”€ kind-of@3.2.2 β”œβ”€ last-call-webpack-plugin@3.0.0 β”œβ”€ lcid@2.0.0 β”œβ”€ load-json-file@1.1.0 β”œβ”€ loader-runner@2.4.0 β”œβ”€ locate-path@3.0.0 β”œβ”€ lodash.assign@4.2.0 β”œβ”€ lodash.clonedeep@4.5.0 β”œβ”€ lodash.get@4.4.2 β”œβ”€ lodash.has@4.5.2 β”œβ”€ lodash.memoize@4.1.2 β”œβ”€ lodash.mergewith@4.6.1 β”œβ”€ lodash.tail@4.1.1 β”œβ”€ lodash.template@4.4.0 β”œβ”€ lodash.templatesettings@4.1.0 β”œβ”€ lodash.uniq@4.5.0 β”œβ”€ lodash@4.17.11 β”œβ”€ loose-envify@1.4.0 β”œβ”€ loud-rejection@1.6.0 β”œβ”€ lru-cache@4.1.5 β”œβ”€ make-dir@1.3.0 β”œβ”€ mamacro@0.0.3 β”œβ”€ map-age-cleaner@0.1.3 β”œβ”€ map-obj@1.0.1 β”œβ”€ map-visit@1.0.0 β”œβ”€ mem@4.1.0 β”œβ”€ memory-fs@0.4.1 β”œβ”€ meow@3.7.0 β”œβ”€ micromatch@3.1.10 β”œβ”€ miller-rabin@4.0.1 β”œβ”€ mime-db@1.38.0 β”œβ”€ mime-types@2.1.22 β”œβ”€ mimic-fn@1.2.0 β”œβ”€ mini-css-extract-plugin@0.5.0 β”œβ”€ minimalistic-assert@1.0.1 β”œβ”€ minimalistic-crypto-utils@1.0.1 β”œβ”€ minimatch@3.0.4 β”œβ”€ minimist@1.2.0 β”œβ”€ mississippi@3.0.0 β”œβ”€ mixin-deep@1.3.1 β”œβ”€ mixin-object@2.0.1 β”œβ”€ mkdirp@0.5.1 β”œβ”€ move-concurrently@1.0.1 β”œβ”€ ms@2.0.0 β”œβ”€ nan@2.12.1 β”œβ”€ nanomatch@1.2.13 β”œβ”€ nice-try@1.0.5 β”œβ”€ node-gyp@3.8.0 β”œβ”€ node-libs-browser@2.2.0 β”œβ”€ node-releases@1.1.10 β”œβ”€ node-sass@4.11.0 β”œβ”€ nopt@3.0.6 β”œβ”€ normalize-package-data@2.5.0 β”œβ”€ normalize-range@0.1.2 β”œβ”€ normalize-url@3.3.0 β”œβ”€ npm-run-path@2.0.2 β”œβ”€ npmlog@4.1.2 β”œβ”€ nth-check@1.0.2 β”œβ”€ num2fraction@1.2.2 β”œβ”€ oauth-sign@0.9.0 β”œβ”€ object-assign@4.1.1 β”œβ”€ object-copy@0.1.0 β”œβ”€ object.assign@4.1.0 β”œβ”€ object.getownpropertydescriptors@2.0.3 β”œβ”€ object.values@1.1.0 β”œβ”€ once@1.4.0 β”œβ”€ optimize-css-assets-webpack-plugin@5.0.1 β”œβ”€ os-browserify@0.3.0 β”œβ”€ os-homedir@1.0.2 β”œβ”€ os-locale@3.1.0 β”œβ”€ os-tmpdir@1.0.2 β”œβ”€ osenv@0.1.5 β”œβ”€ p-defer@1.0.0 β”œβ”€ p-finally@1.0.0 β”œβ”€ p-is-promise@2.0.0 β”œβ”€ p-limit@2.2.0 β”œβ”€ p-locate@3.0.0 β”œβ”€ p-try@2.0.0 β”œβ”€ pako@1.0.10 β”œβ”€ parallel-transform@1.1.0 β”œβ”€ parse-passwd@1.0.0 β”œβ”€ pascalcase@0.1.1 β”œβ”€ path-browserify@0.0.0 β”œβ”€ path-complete-extname@1.0.0 β”œβ”€ path-dirname@1.0.2 β”œβ”€ path-exists@3.0.0 β”œβ”€ path-key@2.0.1 β”œβ”€ path-parse@1.0.6 β”œβ”€ path-type@1.1.0 β”œβ”€ performance-now@2.1.0 β”œβ”€ pinkie@2.0.4 β”œβ”€ pnp-webpack-plugin@1.4.1 β”œβ”€ posix-character-classes@0.1.1 β”œβ”€ postcss-attribute-case-insensitive@4.0.1 β”œβ”€ postcss-calc@7.0.1 β”œβ”€ postcss-color-functional-notation@2.0.1 β”œβ”€ postcss-color-gray@5.0.0 β”œβ”€ postcss-color-hex-alpha@5.0.2 β”œβ”€ postcss-color-mod-function@3.0.3 β”œβ”€ postcss-color-rebeccapurple@4.0.1 β”œβ”€ postcss-colormin@4.0.3 β”œβ”€ postcss-convert-values@4.0.1 β”œβ”€ postcss-custom-media@7.0.7 β”œβ”€ postcss-custom-properties@8.0.9 β”œβ”€ postcss-custom-selectors@5.1.2 β”œβ”€ postcss-dir-pseudo-class@5.0.0 β”œβ”€ postcss-discard-comments@4.0.2 β”œβ”€ postcss-discard-duplicates@4.0.2 β”œβ”€ postcss-discard-empty@4.0.1 β”œβ”€ postcss-discard-overridden@4.0.1 β”œβ”€ postcss-double-position-gradients@1.0.0 β”œβ”€ postcss-env-function@2.0.2 β”œβ”€ postcss-flexbugs-fixes@4.1.0 β”œβ”€ postcss-focus-visible@4.0.0 β”œβ”€ postcss-focus-within@3.0.0 β”œβ”€ postcss-font-variant@4.0.0 β”œβ”€ postcss-gap-properties@2.0.0 β”œβ”€ postcss-image-set-function@3.0.1 β”œβ”€ postcss-import@12.0.1 β”œβ”€ postcss-initial@3.0.0 β”œβ”€ postcss-lab-function@2.0.1 β”œβ”€ postcss-load-config@2.0.0 β”œβ”€ postcss-loader@3.0.0 β”œβ”€ postcss-logical@3.0.0 β”œβ”€ postcss-media-minmax@4.0.0 β”œβ”€ postcss-merge-longhand@4.0.11 β”œβ”€ postcss-merge-rules@4.0.3 β”œβ”€ postcss-minify-font-values@4.0.2 β”œβ”€ postcss-minify-gradients@4.0.2 β”œβ”€ postcss-minify-params@4.0.2 β”œβ”€ postcss-minify-selectors@4.0.2 β”œβ”€ postcss-modules-extract-imports@2.0.0 β”œβ”€ postcss-modules-local-by-default@2.0.6 β”œβ”€ postcss-modules-scope@2.1.0 β”œβ”€ postcss-modules-values@2.0.0 β”œβ”€ postcss-nesting@7.0.0 β”œβ”€ postcss-normalize-charset@4.0.1 β”œβ”€ postcss-normalize-display-values@4.0.2 β”œβ”€ postcss-normalize-positions@4.0.2 β”œβ”€ postcss-normalize-repeat-style@4.0.2 β”œβ”€ postcss-normalize-string@4.0.2 β”œβ”€ postcss-normalize-timing-functions@4.0.2 β”œβ”€ postcss-normalize-unicode@4.0.1 β”œβ”€ postcss-normalize-url@4.0.1 β”œβ”€ postcss-normalize-whitespace@4.0.2 β”œβ”€ postcss-ordered-values@4.1.2 β”œβ”€ postcss-overflow-shorthand@2.0.0 β”œβ”€ postcss-page-break@2.0.0 β”œβ”€ postcss-place@4.0.1 β”œβ”€ postcss-preset-env@6.6.0 β”œβ”€ postcss-pseudo-class-any-link@6.0.0 β”œβ”€ postcss-reduce-initial@4.0.3 β”œβ”€ postcss-reduce-transforms@4.0.2 β”œβ”€ postcss-replace-overflow-wrap@3.0.0 β”œβ”€ postcss-safe-parser@4.0.1 β”œβ”€ postcss-selector-matches@4.0.0 β”œβ”€ postcss-selector-not@4.0.0 β”œβ”€ postcss-svgo@4.0.2 β”œβ”€ postcss-unique-selectors@4.0.1 β”œβ”€ private@0.1.8 β”œβ”€ process-nextick-args@2.0.0 β”œβ”€ process@0.11.10 β”œβ”€ promise-inflight@1.0.1 β”œβ”€ prr@1.0.1 β”œβ”€ pseudomap@1.0.2 β”œβ”€ psl@1.1.31 β”œβ”€ public-encrypt@4.0.3 β”œβ”€ pumpify@1.5.1 β”œβ”€ punycode@1.4.1 β”œβ”€ q@1.5.1 β”œβ”€ qs@6.5.2 β”œβ”€ querystring-es3@0.2.1 β”œβ”€ querystring@0.2.0 β”œβ”€ randomfill@1.0.4 β”œβ”€ read-cache@1.0.0 β”œβ”€ read-pkg@1.1.0 β”œβ”€ readdirp@2.2.1 β”œβ”€ redent@1.0.0 β”œβ”€ regenerate-unicode-properties@8.0.2 β”œβ”€ regenerator-transform@0.13.4 β”œβ”€ regexp-tree@0.1.5 β”œβ”€ regjsgen@0.5.0 β”œβ”€ regjsparser@0.6.0 β”œβ”€ remove-trailing-separator@1.1.0 β”œβ”€ repeat-element@1.1.3 β”œβ”€ repeating@2.0.1 β”œβ”€ request@2.88.0 β”œβ”€ require-from-string@2.0.2 β”œβ”€ resolve-cwd@2.0.0 β”œβ”€ resolve-dir@1.0.1 β”œβ”€ resolve-url@0.2.1 β”œβ”€ resolve@1.10.0 β”œβ”€ ret@0.1.15 β”œβ”€ rgb-regex@1.0.1 β”œβ”€ rgba-regex@1.0.0 β”œβ”€ rimraf@2.6.3 β”œβ”€ ripemd160@2.0.2 β”œβ”€ run-queue@1.0.3 β”œβ”€ safer-buffer@2.1.2 β”œβ”€ sass-graph@2.2.4 β”œβ”€ sass-loader@7.1.0 β”œβ”€ sax@1.2.4 β”œβ”€ scss-tokenizer@0.2.3 β”œβ”€ semver@5.6.0 β”œβ”€ set-value@2.0.0 β”œβ”€ setimmediate@1.0.5 β”œβ”€ shallow-clone@1.0.0 β”œβ”€ shebang-command@1.2.0 β”œβ”€ shebang-regex@1.0.0 β”œβ”€ simple-swizzle@0.2.2 β”œβ”€ snapdragon-node@2.1.1 β”œβ”€ snapdragon-util@3.0.1 β”œβ”€ source-list-map@2.0.1 β”œβ”€ source-map-resolve@0.5.2 β”œβ”€ source-map-support@0.5.10 β”œβ”€ source-map-url@0.4.0 β”œβ”€ spdx-correct@3.1.0 β”œβ”€ spdx-exceptions@2.2.0 β”œβ”€ split-string@3.1.0 β”œβ”€ sprintf-js@1.0.3 β”œβ”€ sshpk@1.16.1 β”œβ”€ ssri@6.0.1 β”œβ”€ stable@0.1.8 β”œβ”€ static-extend@0.1.2 β”œβ”€ stdout-stream@1.4.1 β”œβ”€ stream-browserify@2.0.2 β”œβ”€ stream-each@1.2.3 β”œβ”€ stream-http@2.8.3 β”œβ”€ string_decoder@1.2.0 β”œβ”€ strip-bom@2.0.0 β”œβ”€ strip-eof@1.0.0 β”œβ”€ strip-indent@1.0.1 β”œβ”€ style-loader@0.23.1 β”œβ”€ stylehacks@4.0.3 β”œβ”€ supports-color@5.5.0 β”œβ”€ svgo@1.2.0 β”œβ”€ tar@2.2.1 β”œβ”€ terser-webpack-plugin@1.2.3 β”œβ”€ terser@3.17.0 β”œβ”€ through2@2.0.5 β”œβ”€ timers-browserify@2.0.10 β”œβ”€ timsort@0.3.0 β”œβ”€ to-arraybuffer@1.0.1 β”œβ”€ to-fast-properties@2.0.0 β”œβ”€ to-regex-range@2.1.1 β”œβ”€ tough-cookie@2.4.3 β”œβ”€ trim-newlines@1.0.0 β”œβ”€ trim-right@1.0.1 β”œβ”€ true-case-path@1.0.3 β”œβ”€ ts-pnp@1.0.1 β”œβ”€ tslib@1.9.3 β”œβ”€ tty-browserify@0.0.0 β”œβ”€ tunnel-agent@0.6.0 β”œβ”€ tweetnacl@0.14.5 β”œβ”€ typedarray@0.0.6 β”œβ”€ unicode-canonical-property-names-ecmascript@1.0.4 β”œβ”€ unicode-match-property-ecmascript@1.0.4 β”œβ”€ unicode-match-property-value-ecmascript@1.1.0 β”œβ”€ unicode-property-aliases-ecmascript@1.0.5 β”œβ”€ union-value@1.0.0 β”œβ”€ unique-filename@1.1.1 β”œβ”€ unique-slug@2.0.1 β”œβ”€ unquote@1.1.1 β”œβ”€ unset-value@1.0.0 β”œβ”€ upath@1.1.2 β”œβ”€ uri-js@4.2.2 β”œβ”€ urix@0.1.0 β”œβ”€ url@0.11.0 β”œβ”€ use@3.1.1 β”œβ”€ util-deprecate@1.0.2 β”œβ”€ util.promisify@1.0.0 β”œβ”€ util@0.11.1 β”œβ”€ uuid@3.3.2 β”œβ”€ v8-compile-cache@2.0.2 β”œβ”€ validate-npm-package-license@3.0.4 β”œβ”€ vendors@1.0.2 β”œβ”€ verror@1.10.0 β”œβ”€ vm-browserify@0.0.4 β”œβ”€ watchpack@1.6.0 β”œβ”€ webpack-assets-manifest@3.1.1 β”œβ”€ webpack-cli@3.2.3 β”œβ”€ webpack@4.29.6 β”œβ”€ which-module@2.0.0 β”œβ”€ which@1.3.1 β”œβ”€ wide-align@1.1.3 β”œβ”€ worker-farm@1.6.0 β”œβ”€ xtend@4.0.1 β”œβ”€ y18n@4.0.0 β”œβ”€ yallist@3.0.3 β”œβ”€ yargs-parser@11.1.1 └─ yargs@12.0.5 Done in 8.61s. Installing dev server for live reloading run yarn add --dev webpack-dev-server from "." yarn add v1.9.4 warning package.json: No license field warning No license field [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@1.2.7: The platform "linux" is incompatible with this module. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.0.1" has unmet peer dependency "typescript@*". warning "webpack-dev-server > webpack-dev-middleware@3.6.1" has unmet peer dependency "webpack@^4.0.0". warning " > webpack-dev-server@3.2.1" has unmet peer dependency "webpack@^4.0.0". [4/4] Building fresh packages... success Saved lockfile. success Saved 90 new dependencies. info Direct dependencies └─ webpack-dev-server@3.2.1 info All dependencies β”œβ”€ accepts@1.3.5 β”œβ”€ ansi-colors@3.2.4 β”œβ”€ ansi-html@0.0.7 β”œβ”€ array-flatten@1.1.1 β”œβ”€ array-union@1.0.2 β”œβ”€ array-uniq@1.0.3 β”œβ”€ async@1.5.2 β”œβ”€ batch@0.6.1 β”œβ”€ body-parser@1.18.3 β”œβ”€ bonjour@3.5.0 β”œβ”€ buffer-indexof@1.1.1 β”œβ”€ compressible@2.0.16 β”œβ”€ compression@1.7.3 β”œβ”€ connect-history-api-fallback@1.6.0 β”œβ”€ content-disposition@0.5.2 β”œβ”€ cookie-signature@1.0.6 β”œβ”€ cookie@0.3.1 β”œβ”€ deep-equal@1.0.1 β”œβ”€ default-gateway@4.2.0 β”œβ”€ del@3.0.0 β”œβ”€ destroy@1.0.4 β”œβ”€ detect-node@2.0.4 β”œβ”€ dns-equal@1.0.0 β”œβ”€ dns-packet@1.3.1 β”œβ”€ dns-txt@2.0.2 β”œβ”€ ee-first@1.1.1 β”œβ”€ eventemitter3@3.1.0 β”œβ”€ eventsource@1.0.7 β”œβ”€ express@4.16.4 β”œβ”€ faye-websocket@0.10.0 β”œβ”€ finalhandler@1.1.1 β”œβ”€ follow-redirects@1.7.0 β”œβ”€ forwarded@0.1.2 β”œβ”€ globby@6.1.0 β”œβ”€ handle-thing@2.0.0 β”œβ”€ hpack.js@2.1.6 β”œβ”€ html-entities@1.2.1 β”œβ”€ http-deceiver@1.2.7 β”œβ”€ http-errors@1.6.3 β”œβ”€ http-parser-js@0.5.0 β”œβ”€ http-proxy-middleware@0.19.1 β”œβ”€ http-proxy@1.17.0 β”œβ”€ internal-ip@4.2.0 β”œβ”€ ip-regex@2.1.0 β”œβ”€ ip@1.1.5 β”œβ”€ ipaddr.js@1.9.0 β”œβ”€ is-path-cwd@1.0.0 β”œβ”€ is-path-in-cwd@1.0.1 β”œβ”€ is-path-inside@1.0.1 β”œβ”€ is-wsl@1.1.0 β”œβ”€ json3@3.3.2 β”œβ”€ killable@1.0.1 β”œβ”€ loglevel@1.6.1 β”œβ”€ media-typer@0.3.0 β”œβ”€ merge-descriptors@1.0.1 β”œβ”€ methods@1.1.2 β”œβ”€ mime@2.4.0 β”œβ”€ multicast-dns-service-types@1.1.0 β”œβ”€ multicast-dns@6.2.3 β”œβ”€ negotiator@0.6.1 β”œβ”€ node-forge@0.7.5 β”œβ”€ obuf@1.1.2 β”œβ”€ on-headers@1.0.2 β”œβ”€ opn@5.4.0 β”œβ”€ original@1.0.2 β”œβ”€ p-map@1.2.0 β”œβ”€ path-is-inside@1.0.2 β”œβ”€ path-to-regexp@0.1.7 β”œβ”€ portfinder@1.0.20 β”œβ”€ proxy-addr@2.0.4 β”œβ”€ querystringify@2.1.0 β”œβ”€ raw-body@2.3.3 β”œβ”€ select-hose@2.0.0 β”œβ”€ selfsigned@1.10.4 β”œβ”€ serve-index@1.9.1 β”œβ”€ serve-static@1.13.2 β”œβ”€ sockjs-client@1.3.0 β”œβ”€ sockjs@0.3.19 β”œβ”€ spdy-transport@3.0.0 β”œβ”€ spdy@4.0.0 β”œβ”€ thunky@1.0.3 β”œβ”€ unpipe@1.0.0 β”œβ”€ utils-merge@1.0.1 β”œβ”€ wbuf@1.7.3 β”œβ”€ webpack-dev-middleware@3.6.1 β”œβ”€ webpack-dev-server@3.2.1 β”œβ”€ websocket-extensions@0.1.3 β”œβ”€ xregexp@4.0.0 β”œβ”€ yargs-parser@10.1.0 └─ yargs@12.0.2 warning No license field Done in 4.69s. Webpacker successfully installed create app/javascript create app/javascript/packs/application.js create app/javascript/packs/theme.scss create app/javascript/src/jets/crud.js insert config/webpack/environment.js run yarn add bootstrap@4.0.0-beta jquery popper.js postcss-cssnext from "." yarn add v1.9.4 warning package.json: No license field warning No license field [1/4] Resolving packages... warning postcss-cssnext@3.1.0: 'postcss-cssnext' has been deprecated in favor of 'postcss-preset-env'. Read more at https://moox.io/blog/deprecating-cssnext/ warning postcss-cssnext > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning postcss-cssnext > pixrem > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning postcss-cssnext > caniuse-api > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. [2/4] Fetching packages... info fsevents@1.2.7: The platform "linux" is incompatible with this module. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "@rails/webpacker > pnp-webpack-plugin > ts-pnp@1.0.1" has unmet peer dependency "typescript@*". warning " > webpack-dev-server@3.2.1" has unmet peer dependency "webpack@^4.0.0". warning "webpack-dev-server > webpack-dev-middleware@3.6.1" has unmet peer dependency "webpack@^4.0.0". warning " > postcss-cssnext@3.1.0" has unmet peer dependency "caniuse-lite@^1.0.30000697". [4/4] Building fresh packages... success Saved lockfile. success Saved 44 new dependencies. info Direct dependencies β”œβ”€ bootstrap@4.0.0-beta β”œβ”€ jquery@3.3.1 β”œβ”€ popper.js@1.14.7 └─ postcss-cssnext@3.1.0 info All dependencies β”œβ”€ autoprefixer@7.2.6 β”œβ”€ babel-runtime@6.26.0 β”œβ”€ bootstrap@4.0.0-beta β”œβ”€ clone@1.0.4 β”œβ”€ css-color-function@1.3.3 β”œβ”€ isnumeric@0.2.0 β”œβ”€ jquery@3.3.1 β”œβ”€ math-expression-evaluator@1.2.17 β”œβ”€ onecolor@3.1.0 β”œβ”€ pixrem@4.0.1 β”œβ”€ pleeease-filters@4.0.0 β”œβ”€ popper.js@1.14.7 β”œβ”€ postcss-apply@0.8.0 β”œβ”€ postcss-attribute-case-insensitive@2.0.0 β”œβ”€ postcss-calc@6.0.2 β”œβ”€ postcss-color-function@4.0.1 β”œβ”€ postcss-color-gray@4.1.0 β”œβ”€ postcss-color-hex-alpha@3.0.0 β”œβ”€ postcss-color-hsl@2.0.0 β”œβ”€ postcss-color-hwb@3.0.0 β”œβ”€ postcss-color-rebeccapurple@3.1.0 β”œβ”€ postcss-color-rgb@2.0.0 β”œβ”€ postcss-color-rgba-fallback@3.0.0 β”œβ”€ postcss-cssnext@3.1.0 β”œβ”€ postcss-custom-media@6.0.0 β”œβ”€ postcss-custom-properties@6.3.1 β”œβ”€ postcss-custom-selectors@4.0.1 β”œβ”€ postcss-font-family-system-ui@3.0.0 β”œβ”€ postcss-font-variant@3.0.0 β”œβ”€ postcss-image-set-polyfill@0.3.5 β”œβ”€ postcss-initial@2.0.0 β”œβ”€ postcss-media-minmax@3.0.0 β”œβ”€ postcss-media-query-parser@0.2.3 β”œβ”€ postcss-nesting@4.2.1 β”œβ”€ postcss-pseudo-class-any-link@4.0.0 β”œβ”€ postcss-pseudoelements@5.0.0 β”œβ”€ postcss-replace-overflow-wrap@2.0.0 β”œβ”€ postcss-selector-matches@3.0.1 β”œβ”€ postcss-selector-not@3.0.1 β”œβ”€ reduce-css-calc@1.3.0 β”œβ”€ rgb-hex@2.1.0 β”œβ”€ rgb@0.1.0 β”œβ”€ units-css@0.4.0 └─ viewport-dimensions@0.2.0 warning No license field Done in 4.46s. run git init from "." Initialized empty Git repository in /home/ec2-user/environment/api/.git/ run git add . from "." run git commit -m 'first commit' from "." [master (root-commit) 240e020] first commit 47 files changed, 7696 insertions(+) create mode 100644 .babelrc create mode 100644 .gitignore create mode 100644 .jetskeep create mode 100644 .postcssrc.yml create mode 100644 .rspec create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Procfile create mode 100644 README.md create mode 100644 Rakefile create mode 100644 app/controllers/application_controller.rb create mode 100644 app/helpers/application_helper.rb create mode 100644 app/javascript/packs/application.js create mode 100644 app/javascript/packs/theme.scss create mode 100644 app/javascript/src/jets/crud.js create mode 100644 app/jobs/application_job.rb create mode 100644 app/models/application_item.rb create mode 100644 app/models/application_record.rb create mode 100644 app/views/layouts/application.html.erb create mode 100755 bin/webpack create mode 100755 bin/webpack-dev-server create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/database.yml create mode 100644 config/dynamodb.yml create mode 100644 config/environments/development.rb create mode 100644 config/environments/production.rb create mode 100644 config/environments/test.rb create mode 100644 config/routes.rb create mode 100644 config/webpack/development.js create mode 100644 config/webpack/environment.js create mode 100644 config/webpack/production.js create mode 100644 config/webpack/staging.js create mode 100644 config/webpack/test.js create mode 100644 config/webpacker.yml create mode 100644 db/.gitkeep create mode 100644 package.json create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/favicon.ico create mode 100644 public/index.html create mode 100644 spec/controllers/posts_controller_spec.rb create mode 100644 spec/fixtures/payloads/posts-index.json create mode 100644 spec/fixtures/payloads/posts-show.json create mode 100644 spec/spec_helper.rb create mode 100644 yarn.lock ================================================================ Congrats You have successfully created a Jets project. Cd into the project directory: cd api To start a server and test locally: jets server # localhost:8888 should have the Jets welcome page Scaffold example: jets generate scaffold Post title:string body:text published:boolean jets db:create db:migrate To deploy to AWS Lambda, edit your .env.development.remote and add a DATABASE_URL endpoint. Then run: jets deploy $ cd api /home/ec2-user/environment/api $ JETS_ENV=development bin/webpack The uglify target has been deprecated. Set the top level option `forceAllTransforms: true` instead. Hash: fda657ec438951de2fb7 Version: webpack 4.29.6 Time: 3468ms Built at: 2019-03-11 21:51:43 Asset Size Chunks Chunk Names css/theme-a08003a6.css 252 bytes theme [emitted] theme css/theme-a08003a6.css.map 564 bytes theme [emitted] theme js/application-ff3579c6cba890694d34.js 328 KiB application [emitted] application js/application-ff3579c6cba890694d34.js.map 373 KiB application [emitted] application js/theme-f829621d2bbff7d42ee8.js 3.93 KiB theme [emitted] theme js/theme-f829621d2bbff7d42ee8.js.map 3.61 KiB theme [emitted] theme manifest.json 901 bytes [emitted] Entrypoint application = js/application-ff3579c6cba890694d34.js js/application-ff3579c6cba890694d34.js.map Entrypoint theme = css/theme-a08003a6.css js/theme-f829621d2bbff7d42ee8.js css/theme-a08003a6.css.map js/theme-f829621d2bbff7d42ee8.js.map [./app/javascript/packs/application.js] 550 bytes {application} [built] [./app/javascript/packs/theme.scss] 39 bytes {theme} [built] [./app/javascript/src/jets/crud.js] 2.16 KiB {application} [built] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 552 bytes {application} [built] + 36 hidden modules Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--7-1!node_modules/postcss-loader/src/index.js??ref--7-2!node_modules/sass-loader/lib/loader.js??ref--7-3!app/javascript/packs/theme.scss: Entrypoint mini-css-extract-plugin = * [./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/lib/loader.js?!./app/javascript/packs/theme.scss] ./node_modules/css-loader/dist/cjs.js??ref--7-1!./node_modules/postcss-loader/src??ref--7-2!./node_modules/sass-loader/lib/loader.js??ref--7-3!./app/javascript/packs/theme.scss 982 bytes {mini-css-extract-plugin} [built] + 1 hidden module $ nvm current v8.10.0 $ yarn --version 1.9.4 $ ```

Bummer, unable to reproduce on my machine. Wondering if it's an environmental thing and if so, what the difference is.

We're running the same node version. Maybe it's a yarn version thing?

$ nvm current
v8.10.0
$ yarn --version
1.9.4
$ 
brad-larson commented 5 years ago

Hmm, my yarn version is also 1.9.4

brad-larson commented 5 years ago

No such file or directory - /Users/brad/src/api/node_modules/.bin/webpack,

If my app's root directory is /Users/brad/src/api, should there be a node_modules directory there?

I do not have one, and cannot find a package.json within the project directory.

tongueroo commented 5 years ago

@brad-larson

RE: should there be a node_modules directory there? I do not have one, and cannot find a package.json within the project directory.

Yup, both package.json and node_modules should exist.

This might provide some debugging help. The jets new command calls jets webpacker:install as part of the process. In turn, that ultimately runs this template script: https://github.com/tongueroo/webpacker/blob/master/lib/install/template.rb

That creates the package.json and node_modules. So something funny where it's not creating those files. Thinking maybe try running a yarn install command directly to see if that reveals more information. Something like:

yarn add @rails/webpacker coffeescript@1.12.7

This also reminds me of #187 He had some issues and he ended up removing his node related folders in his home directory. That cleared out the issue. Think this may be environment specific, unfortunately.

brad-larson commented 5 years ago

Gotcha, thanks for the help