Hi,
I’m following the instructions provided by Oracle to package a Jet application using Webpack
At this stage all I am doing creating a navbar starter application by following the instructions have copied in below. When I attempt to build the application as per the instructions, I get the error highlighted below.
I’m using the latest 9.1.0 webpack.config.js
Any suggestion on what might be causing this please..
D:\jet\web-app-navbar>npx webpack
Hash: 8b1358868302b6c2024b
Version: webpack 4.44.2
Time: 77ms
Built at: 24/09/2020 11:48:05
Asset Size Chunks Chunk Names
- 0.bundle.js 2.53 KiB 0 [emitted]
bundle.js 9.51 KiB main [emitted] main
Entrypoint main = bundle.js
[./web/js/libs/oj/v9.1.0/debug/ojbootstrap.js] 1.68 KiB {0} [built]
[./web/js/main.js] 1.92 KiB {main} [built]
ERROR in ./web/js/main.js
Module not found: Error: Can't resolve 'root' in 'D:\jet\web-app-navbar\web\js'
@ ./web/js/main.js 62:0-67:2
D:\jet\web-app-navbar>
Instructions:
==============
By default, the webpack.config.js is configured to run, as is, when unzipped into the root of an application generated using the ojet-cli tooling.
To run Webpack against a JET Starter Template, follow these steps.
1) Create new JET app with:
ojet create web-app-navbar --template=navbar --typescript
2) Build the JET app with "ojet build"
3) Unzip the jet-webpack.zip file into the root of the new application
4) From the root of your application, install three libraries
npm i webpack webpack-cli text-loader --save-dev
5) Run "npx webpack" from the root of the project