-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Which exact UI Library version are you using? For example: 1.0.1 - don't just write v1.
1.0.1
Bug summary
uui-popover seems to be missing from the bundle package, this causes an error in the Webpack build.
Specifics
The error message:
ERROR in ./node_modules/@umbraco-ui/uui/lib/index.js 36:0-37
Module not found: Error: Can't resolve '@umbraco-ui/uui-popover/lib' in '/home/projects/ojo-uui-0-1-1-webpack-test/node_modules/@umbraco-ui/uui/lib'
resolve '@umbraco-ui/uui-popover/lib' in '/home/projects/ojo-uui-0-1-1-webpack-test/node_modules/@umbraco-ui/uui/lib'
Parsed request is a module
using description file: /home/projects/ojo-uui-0-1-1-webpack-test/node_modules/@umbraco-ui/uui/package.json (relative path: ./lib)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/home/projects/ojo-uui-0-1-1-webpack-test/node_modules/@umbraco-ui/uui/lib/node_modules doesn't exist or is not a directory
/home/projects/ojo-uui-0-1-1-webpack-test/node_modules/@umbraco-ui/uui/node_modules doesn't exist or is not a directory
/home/projects/ojo-uui-0-1-1-webpack-test/node_modules/@umbraco-ui/node_modules doesn't exist or is not a directory
/home/projects/ojo-uui-0-1-1-webpack-test/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /home/projects/ojo-uui-0-1-1-webpack-test/node_modules
/home/projects/ojo-uui-0-1-1-webpack-test/node_modules/@umbraco-ui/uui-popover doesn't exist
/home/projects/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./src/index.js 1:0-25
webpack 5.72.0 compiled with 1 error in 1820 ms
You can see it happen here in this Stackblitz: https://stackblitz.com/edit/ojo-uui-0-1-1-webpack-test?file=webpack.config.js&terminal=build%2Cstart
Steps to reproduce
- Install and setup Webpack via npm.
- Install UUI, via npm, and add an import to your .js file.
- Setup a Webpack build script to build the .js file containing the UUI import.
- Remember to include the
fullySpecified: false
rule as recommended here.
- Remember to include the
- Attempt to run the Webpack build script.
Expected result / actual result
Expected result:
Webpack should run the build script with no errors
Actual result:
The build script completes but with 1 error
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working